{"action":"created","issue":{"url":"https://api.github.com/repos/netty/netty/issues/3381","labels_url":"https://api.github.com/repos/netty/netty/issues/3381/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/3381/comments","events_url":"https://api.github.com/repos/netty/netty/issues/3381/events","html_url":"https://github.com/netty/netty/pull/3381","id":56067574,"number":3381,"title":"Allow to use EmbeddedChannel.schedule*(...)","user":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/netty/netty/milestones/109","labels_url":"https://api.github.com/repos/netty/netty/milestones/109/labels","id":918308,"number":109,"title":"4.0.26.Final","description":null,"creator":{"login":"trustin","id":173918,"avatar_url":"https://avatars.githubusercontent.com/u/173918?v=3","gravatar_id":"","url":"https://api.github.com/users/trustin","html_url":"https://github.com/trustin","followers_url":"https://api.github.com/users/trustin/followers","following_url":"https://api.github.com/users/trustin/following{/other_user}","gists_url":"https://api.github.com/users/trustin/gists{/gist_id}","starred_url":"https://api.github.com/users/trustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustin/subscriptions","organizations_url":"https://api.github.com/users/trustin/orgs","repos_url":"https://api.github.com/users/trustin/repos","events_url":"https://api.github.com/users/trustin/events{/privacy}","received_events_url":"https://api.github.com/users/trustin/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":55,"state":"open","created_at":"2014-12-31T07:43:52Z","updated_at":"2015-02-20T12:54:36Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2015-01-30T18:29:44Z","updated_at":"2015-02-20T12:54:36Z","closed_at":"2015-02-20T12:54:36Z","pull_request":{"url":"https://api.github.com/repos/netty/netty/pulls/3381","html_url":"https://github.com/netty/netty/pull/3381","diff_url":"https://github.com/netty/netty/pull/3381.diff","patch_url":"https://github.com/netty/netty/pull/3381.patch"},"body":"Motivation:\r\n\r\nAt the moment when EmbeddedChannel is used and a ChannelHandler tries to schedule and task it will throw an UnsupportedOperationException. This makes it impossible to test these handlers or even reuse them with EmbeddedChannel.\r\n\r\nModifications:\r\n\r\n- Factor out reusable scheduling code into AbstractSchedulingEventExecutor\r\n- Let EmbeddedEventLoop and SingleThreadEventExecutor extend AbstractSchedulingEventExecutor\r\n- add EmbbededChannel.runScheduledPendingTasks() which allows to run all scheduled tasks that are ready\r\n\r\nResult:\r\n\r\nEmbeddedchannel is now usable even with ChannelHandler that try to schedule tasks."},"comment":{"url":"https://api.github.com/repos/netty/netty/issues/comments/75233575","html_url":"https://github.com/netty/netty/pull/3381#issuecomment-75233575","issue_url":"https://api.github.com/repos/netty/netty/issues/3381","id":75233575,"user":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T12:54:36Z","updated_at":"2015-02-20T12:54:36Z","body":"Cherry-picked into 4.0 (6950bfb5d8c043eaf95c1e00841119a01199c13d) , 4.1 (a70955381993e0a45a97ec732bd784a94bf458d1) and master (590c649e7d756b8284c47ec37dd71d849e06d385)"}}