We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72eebff commit 6f51fabCopy full SHA for 6f51fab
docs/Runtime Environment/Scheduler.md
@@ -15,7 +15,7 @@ The `run` method activates the scheduler. The scheduler resumes all coroutines a
15
```pluto
16
local scheduler = new (require"pluto:scheduler") ()
17
18
--- Make this example behave a bit better in the non-blocking WASM environment
+-- Use coroutine.sleep instead of os.sleep in a non-blocking environment
19
if coroutine.isyieldable() then
20
scheduler.yieldfunc = || -> coroutine.sleep(1)
21
end
0 commit comments