MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / queueMicrotask

Function queueMicrotask

examples/io/streams/modules/streams.js:4–8  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

2// reference implementation: https://github.com/whatwg/streams
3
4function queueMicrotask(f) {
5 Promise.resolve(undefined).then(result => {
6 f();
7 });
8};
9
10function assert(it) {
11 if (!it) {

Callers 3

pullAlgorithmFunction · 0.85
pullWithDefaultReaderFunction · 0.85
pullWithBYOBReaderFunction · 0.85

Calls 2

fFunction · 0.50
resolveMethod · 0.45

Tested by

no test coverage detected