Home
last modified time | relevance | path

Searched refs:queueMicrotask (Results 1 – 25 of 31) sorted by relevance

12

/third_party/node/test/fixtures/wpt/html/webappapis/microtask-queuing/
Dqueue-microtask.any.js5 assert_equals(typeof queueMicrotask, "function");
9 assert_throws(new TypeError(), () => queueMicrotask(), "no argument");
10 assert_throws(new TypeError(), () => queueMicrotask(undefined), "undefined");
11 assert_throws(new TypeError(), () => queueMicrotask(null), "null");
12 assert_throws(new TypeError(), () => queueMicrotask(0), "0");
13 …assert_throws(new TypeError(), () => queueMicrotask({ handleEvent() { } }), "an event handler obje…
14 assert_throws(new TypeError(), () => queueMicrotask("window.x = 5;"), "a string");
19 queueMicrotask(t.step_func_done(() => {
26 queueMicrotask(t.step_func_done(function () { // note: intentionally not an arrow function
34 queueMicrotask(() => happenings.push("b"));
[all …]
Dqueue-microtask.window.js20 queueMicrotask(() => happenings.push("a"));
22 queueMicrotask(() => {
33 queueMicrotask(() => happenings.push("a"));
37 queueMicrotask(() => happenings.push("b"));
38 queueMicrotask(() => happenings.push("c"));
40 queueMicrotask(() => {
Dqueue-microtask-exceptions.any.js14 queueMicrotask(() => { throw error; });
/third_party/node/test/parallel/
Dtest-queue-microtask.js6 assert.strictEqual(typeof queueMicrotask, 'function');
15 queueMicrotask(t);
23 queueMicrotask(common.mustCall(() => {
29 queueMicrotask(common.mustCall(function() {
36 queueMicrotask(common.mustCall(() => q.push('b')));
39 queueMicrotask(common.mustCall(() => {
56 queueMicrotask(common.mustCall(() => {
60 queueMicrotask(class {});
Dtest-readline-tab-complete.js97 queueMicrotask(() => {
130 queueMicrotask(() => {
132 queueMicrotask(() => {
Dtest-queue-microtask-uncaught-asynchooks.js31 queueMicrotask(() => { throw new Error(); });
Dtest-inspector-connect-main-thread.js98 await new Promise(queueMicrotask);
/third_party/node/benchmark/process/
Dqueue-microtask-depth.js10 queueMicrotask(onNextTick);
13 queueMicrotask(onNextTick);
Dqueue-microtask-breadth.js19 queueMicrotask(cb);
/third_party/node/lib/internal/process/
Dtask_queues.js150 function queueMicrotask(callback) { function
175 queueMicrotask field
/third_party/node/lib/
Dinspector.js28 const { queueMicrotask } = require('internal/process/task_queues');
68 (message) => queueMicrotask(() => this[onMessageSymbol](message)));
/third_party/node/test/message/
Dasync_error_microtask_main.js13 queueMicrotask(main);
/third_party/node/test/async-hooks/
Dtest-queue-microtask.js14 queueMicrotask(common.mustCall(() => {
Dtest-destroy-not-blocked.js46 queueMicrotask(common.mustCall(() =>
/third_party/node/test/known_issues/
Dtest-vm-timeout-escape-queuemicrotask.js35 queueMicrotask, property
/third_party/node/doc/api/
Dglobals.md220 ## `queueMicrotask(callback)`
229 The `queueMicrotask()` method queues a microtask to invoke `callback`. If
239 // Here, `queueMicrotask()` is used to ensure the 'load' event is always
247 queueMicrotask(() => {
Dprocess.md1732 ### When to use `queueMicrotask()` vs. `process.nextTick()`
1734 The [`queueMicrotask()`][] API is an alternative to `process.nextTick()` that
1742 queueMicrotask(() => console.log(3));
1750 For *most* userland use cases, the `queueMicrotask()` API provides a portable
1753 In simple scenarios, `queueMicrotask()` can be a drop-in replacement for
1758 queueMicrotask(() => {
1771 `queueMicrotask()` requires using either a closure or a bound function:
1779 queueMicrotask(deferred.bind(undefined, 1, 2));
1794 needed, use `queueMicrotask()`.
2787 [`queueMicrotask()`]: globals.md#globals_queuemicrotask_callback
Dvm.md1410 `queueMicrotask()`, `setTimeout()`, `setImmediate()`, etc. are made available
/third_party/node/lib/internal/bootstrap/
Dnode.js116 queueMicrotask
147 defineOperation(globalThis, 'queueMicrotask', queueMicrotask);
/third_party/typescript/tests/baselines/reference/
DglobalThisBlockscopedProperties.types67 … "clearInterval" | "clearTimeout" | "createImageBitmap" | "fetch" | "queueMicrotask" | "setInterva…
/third_party/node/test/common/
Dindex.js266 queueMicrotask,
/third_party/typescript/lib/
Dlib.webworker.d.ts5412 queueMicrotask(callback: VoidFunction): void; method
5951 declare function queueMicrotask(callback: VoidFunction): void;
/third_party/typescript/src/lib/
Dwebworker.generated.d.ts5392 queueMicrotask(callback: VoidFunction): void; method
5931 declare function queueMicrotask(callback: VoidFunction): void;
/third_party/node/test/fixtures/wpt/interfaces/
Dhtml.idl1913 void queueMicrotask(VoidFunction callback);
/third_party/node/doc/changelogs/
DCHANGELOG_V11.md324 …b.com/nodejs/node/commit/255de69596)] - **process**: refactor global.queueMicrotask() (Joyee Cheun…
2428 …s/node/commit/ee299c7ef1)] - **doc**: remove "idiomatic choice" from queueMicrotask (Rod Vagg) [#2…
2513 …* An experimental implementation of `queueMicrotask()` has been added. [#22951](https://github.com…
2596 …ejs/node/commit/de0441f6f6)] - **(SEMVER-MAJOR)** **lib**: implement queueMicrotask (Gus Caplan) […

12