![]() This change implements a new "scheduler" for WebAssembly using binaryen's asyncify transform. This is more reliable than the current "coroutines" transform, and works with non-Go code in the call stack. runtime (js/wasm): handle scheduler nesting If WASM calls into JS which calls back into WASM, it is possible for the scheduler to nest. The event from the callback must be handled immediately, so the task cannot simply be deferred to the outer scheduler. This creates a minimal scheduler loop which is used to handle such nesting. |
||
---|---|---|
.. | ||
testdata | ||
chan_test.go | ||
event_test.go | ||
fmt_test.go | ||
fmtprint_test.go | ||
log_test.go | ||
setup_test.go |