summaryrefslogtreecommitdiff
path: root/cli/js/timers.ts
AgeCommit message (Collapse)Author
2020-03-03add assertOps sanitizer in cli/js/ unit tests (#4209)Bartek Iwańczuk
* add "assertOps" test assertion which makes sure test case is not "leaking" ops - ie. after test finishes there are no pending async ops * apply "assertOps" to all tests in "cli/js/" * fix numerous tests leaking ops * document problem with edge case in "clearInterval" and "clearTimeout" implementation where they may leak async ops * move "cli/js/worker_test.ts" to "cli/tests/worker_test.ts" and run as integration test; workers leak ops because of missing "terminate" implementation
2020-02-25Clean up how we use opIds (#4118)Ryan Dahl
2020-01-20Use globalThis to reference global scope (#3719)Kitson Kelly
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-01-02Happy new year! (#3578)Ry Dahl
2019-12-10timer: due/now Math.max instead of min (#3477)Kevin (Kun) "Kassimo" Qian
2019-12-03Timer/microtask ordering fix (#3439)Kevin (Kun) "Kassimo" Qian
2019-10-31cli: replace timer map with red-black tree (#3218)Kevin (Kun) Kassimo Qian
This avoids a crash when the Deno process has been running for 2**32 ms (about 50 days). Additionaly, time complexity of finding which timer is due to fire next is reduced from from O(n) to O(log n).
2019-10-19Fix clearTimer bug (#3143)Ry Dahl
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl