Skip to content

Commit 6f51fab

Browse files
committed
Improve explanation on scheduler snippet
1 parent 72eebff commit 6f51fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Runtime Environment/Scheduler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The `run` method activates the scheduler. The scheduler resumes all coroutines a
1515
```pluto
1616
local scheduler = new (require"pluto:scheduler") ()
1717
18-
-- Make this example behave a bit better in the non-blocking WASM environment
18+
-- Use coroutine.sleep instead of os.sleep in a non-blocking environment
1919
if coroutine.isyieldable() then
2020
scheduler.yieldfunc = || -> coroutine.sleep(1)
2121
end

0 commit comments

Comments
 (0)