Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
function
queueMicrotask(f) {
5
Promise.resolve(undefined).then(result => {
6
f();
7
});
8
};
9
10
function
assert(it) {
11
if
(!it) {
Callers
3
pullAlgorithm
Function · 0.85
pullWithDefaultReader
Function · 0.85
pullWithBYOBReader
Function · 0.85
Calls
2
f
Function · 0.50
resolve
Method · 0.45
Tested by
no test coverage detected