Commit 7e48e2e
committed
Use
IIUC this API is better than `setTimeout(0)` or `postMessage()` in terms
of being a polyfill for the old/deprecated setImmediate API.
Its not clear if/when safari will implement this API so it will likely
need to be feature detected for the foreseeable.Scheduler.postTask when implementing EM_TIMING_SETIMMEDIATE
1 parent f573345 commit 7e48e2e
3 files changed
Lines changed: 14 additions & 4 deletions
File tree
- src
- closure-externs
- lib
- test/codesize
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
345 | 352 | | |
| 353 | + | |
346 | 354 | | |
347 | 355 | | |
348 | | - | |
| 356 | + | |
349 | 357 | | |
350 | 358 | | |
351 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments