()
| 105 | |
| 106 | // web worker |
| 107 | function useMessageChannel() { |
| 108 | var channel = new MessageChannel(); |
| 109 | channel.port1.onmessage = flush; |
| 110 | return function () { |
| 111 | return channel.port2.postMessage(0); |
| 112 | }; |
| 113 | } |
| 114 | |
| 115 | function useSetTimeout() { |
| 116 | // Store setTimeout reference so es6-promise will be unaffected by |