{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/34","repository_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp","labels_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/34/comments","events_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/34/events","html_url":"https://github.com/ReactiveSocket/reactivesocket-cpp/issues/34","id":155362681,"number":34,"title":"Allow destruction of ReactiveSocket instance from anywhere","user":{"login":"stupaq-fb","id":9034670,"avatar_url":"https://avatars.githubusercontent.com/u/9034670?v=3","gravatar_id":"","url":"https://api.github.com/users/stupaq-fb","html_url":"https://github.com/stupaq-fb","followers_url":"https://api.github.com/users/stupaq-fb/followers","following_url":"https://api.github.com/users/stupaq-fb/following{/other_user}","gists_url":"https://api.github.com/users/stupaq-fb/gists{/gist_id}","starred_url":"https://api.github.com/users/stupaq-fb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stupaq-fb/subscriptions","organizations_url":"https://api.github.com/users/stupaq-fb/orgs","repos_url":"https://api.github.com/users/stupaq-fb/repos","events_url":"https://api.github.com/users/stupaq-fb/events{/privacy}","received_events_url":"https://api.github.com/users/stupaq-fb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-17T21:10:21Z","updated_at":"2016-05-17T21:18:14Z","closed_at":null,"body":"...including any callbacks that are associated with the instance.\r\n\r\n@yschimke @lehecka What should be the semantics over here?\r\n1) Destroying ReactiveSocket kills all existing streams.\r\n2) Destroying ReactiveSocket doesn't kill existing streams, but prevents any new streams from being accepted or requested."},"comment":{"url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/comments/219857144","html_url":"https://github.com/ReactiveSocket/reactivesocket-cpp/issues/34#issuecomment-219857144","issue_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/34","id":219857144,"user":{"login":"yschimke","id":231923,"avatar_url":"https://avatars.githubusercontent.com/u/231923?v=3","gravatar_id":"","url":"https://api.github.com/users/yschimke","html_url":"https://github.com/yschimke","followers_url":"https://api.github.com/users/yschimke/followers","following_url":"https://api.github.com/users/yschimke/following{/other_user}","gists_url":"https://api.github.com/users/yschimke/gists{/gist_id}","starred_url":"https://api.github.com/users/yschimke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yschimke/subscriptions","organizations_url":"https://api.github.com/users/yschimke/orgs","repos_url":"https://api.github.com/users/yschimke/repos","events_url":"https://api.github.com/users/yschimke/events{/privacy}","received_events_url":"https://api.github.com/users/yschimke/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T21:18:14Z","updated_at":"2016-05-17T21:18:14Z","body":"I don't have a strong opinion yet.  For me, its a synchronous or at least observable (Future?) operation that cleanly shuts down all streams and releases resources.  But I don't know that is agreed and may not make sense when invoked from a callback."}}