diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-10-17 04:29:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 16:59:16 +0530 |
commit | 4c9dd33e27d31a0f6f8f26e043fbfbefa84db0f2 (patch) | |
tree | 43073429e2f8ca3d3bef2aa3bc0378ebf016a118 /ext/fetch/lib.rs | |
parent | e41af14b2a5e7643e4d4e882b20a828ef0104757 (diff) |
perf(ext/web): optimize timer cancellation (#16316)
Towards #16315
It created a bunch of Error objects and rejected the promise. This patch
changes `op_sleep` to resolve with `true` if it was cancelled.
Diffstat (limited to 'ext/fetch/lib.rs')
0 files changed, 0 insertions, 0 deletions