{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/459","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/459/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/459/events","html_url":"https://github.com/petkaantonov/bluebird/issues/459","id":55044225,"number":459,"title":"WebWorker, old browser, and schedule","user":{"login":"fdecampredon","id":864201,"avatar_url":"https://avatars.githubusercontent.com/u/864201?v=3","gravatar_id":"","url":"https://api.github.com/users/fdecampredon","html_url":"https://github.com/fdecampredon","followers_url":"https://api.github.com/users/fdecampredon/followers","following_url":"https://api.github.com/users/fdecampredon/following{/other_user}","gists_url":"https://api.github.com/users/fdecampredon/gists{/gist_id}","starred_url":"https://api.github.com/users/fdecampredon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdecampredon/subscriptions","organizations_url":"https://api.github.com/users/fdecampredon/orgs","repos_url":"https://api.github.com/users/fdecampredon/repos","events_url":"https://api.github.com/users/fdecampredon/events{/privacy}","received_events_url":"https://api.github.com/users/fdecampredon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T16:46:40Z","updated_at":"2015-01-21T16:52:56Z","closed_at":null,"body":"Schedule will be set to setTimeout in webworker (and in oldbrowser), I can understand that other method are a little buggy, but having a 4ms delay can be a serious perf killer, could you at list use 'setImmediate' if provided ? this way we can be sure to have a better delay if we provide a setImmediate shim."},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/70874346","html_url":"https://github.com/petkaantonov/bluebird/issues/459#issuecomment-70874346","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/459","id":70874346,"user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T16:52:56Z","updated_at":"2015-01-21T16:52:56Z","body":"Doesn't [`Promise.setScheduler`](https://github.com/petkaantonov/bluebird/blob/master/API.md#promisesetschedulerfunction-scheduler---void) work for you ?\r\n\r\nYou would use it like:\r\n\r\n```js\r\nPromise.setScheduler(function(fn) {\r\n    setImmediate(fn);\r\n});\r\n```"}}