{"action":"opened","issue":{"url":"https://api.github.com/repos/hgromer/ThreadPool/issues/2","repository_url":"https://api.github.com/repos/hgromer/ThreadPool","labels_url":"https://api.github.com/repos/hgromer/ThreadPool/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hgromer/ThreadPool/issues/2/comments","events_url":"https://api.github.com/repos/hgromer/ThreadPool/issues/2/events","html_url":"https://github.com/hgromer/ThreadPool/issues/2","id":366388365,"node_id":"MDU6SXNzdWUzNjYzODgzNjU=","number":2,"title":"Add ability to submit void tasks","user":{"login":"hgromer","id":22687991,"node_id":"MDQ6VXNlcjIyNjg3OTkx","avatar_url":"https://avatars3.githubusercontent.com/u/22687991?v=4","gravatar_id":"","url":"https://api.github.com/users/hgromer","html_url":"https://github.com/hgromer","followers_url":"https://api.github.com/users/hgromer/followers","following_url":"https://api.github.com/users/hgromer/following{/other_user}","gists_url":"https://api.github.com/users/hgromer/gists{/gist_id}","starred_url":"https://api.github.com/users/hgromer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgromer/subscriptions","organizations_url":"https://api.github.com/users/hgromer/orgs","repos_url":"https://api.github.com/users/hgromer/repos","events_url":"https://api.github.com/users/hgromer/events{/privacy}","received_events_url":"https://api.github.com/users/hgromer/received_events","type":"User","site_admin":false},"labels":[{"id":1024416879,"node_id":"MDU6TGFiZWwxMDI0NDE2ODc5","url":"https://api.github.com/repos/hgromer/ThreadPool/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1024416881,"node_id":"MDU6TGFiZWwxMDI0NDE2ODgx","url":"https://api.github.com/repos/hgromer/ThreadPool/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":{"login":"hgromer","id":22687991,"node_id":"MDQ6VXNlcjIyNjg3OTkx","avatar_url":"https://avatars3.githubusercontent.com/u/22687991?v=4","gravatar_id":"","url":"https://api.github.com/users/hgromer","html_url":"https://github.com/hgromer","followers_url":"https://api.github.com/users/hgromer/followers","following_url":"https://api.github.com/users/hgromer/following{/other_user}","gists_url":"https://api.github.com/users/hgromer/gists{/gist_id}","starred_url":"https://api.github.com/users/hgromer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgromer/subscriptions","organizations_url":"https://api.github.com/users/hgromer/orgs","repos_url":"https://api.github.com/users/hgromer/repos","events_url":"https://api.github.com/users/hgromer/events{/privacy}","received_events_url":"https://api.github.com/users/hgromer/received_events","type":"User","site_admin":false},"assignees":[{"login":"hgromer","id":22687991,"node_id":"MDQ6VXNlcjIyNjg3OTkx","avatar_url":"https://avatars3.githubusercontent.com/u/22687991?v=4","gravatar_id":"","url":"https://api.github.com/users/hgromer","html_url":"https://github.com/hgromer","followers_url":"https://api.github.com/users/hgromer/followers","following_url":"https://api.github.com/users/hgromer/following{/other_user}","gists_url":"https://api.github.com/users/hgromer/gists{/gist_id}","starred_url":"https://api.github.com/users/hgromer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgromer/subscriptions","organizations_url":"https://api.github.com/users/hgromer/orgs","repos_url":"https://api.github.com/users/hgromer/repos","events_url":"https://api.github.com/users/hgromer/events{/privacy}","received_events_url":"https://api.github.com/users/hgromer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-10-03T15:09:36Z","updated_at":"2018-10-03T15:09:36Z","closed_at":null,"author_association":"OWNER","body":"Currently this :\r\n\r\n```\r\nvoid testVoidFun() {\r\n    std::cout << \"Inside void function\" << std::endl;\r\n}\r\n\r\natm::TaskBasePtr voidTask = std::make_shared<atm::Task<void> >(\r\n    []() { testVoidFun(); }); \r\n\r\npool.addTask(voidTask);\r\n```\r\n\r\n\r\n\r\nis impossible. There needs to be a way of preserving the structure which you can get a future if you specify a non void return type, but also pass void to the ThreadPool."}}
{"actor":{"display_login":"hgromer"}}