Skip to content

Commit 68af54e

Browse files
committed
Note that scheduler.add returns the created coroutine
1 parent 6f51fab commit 68af54e

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
@@ -4,7 +4,7 @@ The scheduler class — available via `require` — can be used to easily set up
44
The constructor takes no arguments.
55

66
### `add`
7-
The `add` method can be used to turn a function into a coroutine. The coroutine is resumed once and then added to the scheduler.
7+
The `add` method can be used to turn a function into a coroutine. The coroutine is resumed once, added to the scheduler, and returned.
88

99
### `addloop`
1010
The `addloop` method is a wrapper for the `add` method that keeps invoking the given function until it returns false.

0 commit comments

Comments
 (0)