Skip to content

Commit 1d3f0d2

Browse files
authored
Fix inaccuracies in spawn and defer descriptions.
1 parent eb82640 commit 1d3f0d2

File tree

1 file changed

+3
-5
lines changed
  • content/en-us/reference/engine/libraries

1 file changed

+3
-5
lines changed

content/en-us/reference/engine/libraries/task.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ functions:
2020
description: |
2121
Accepts a function or a thread (as returned by coroutine.create) and
2222
calls/resumes it immediately through the engine's scheduler. Arguments
23-
after the first are sent to the function/thread. This function does not
24-
return any value, even if the provided function returns one immediately.
23+
after the first are sent to the function/thread.
2524
2625
This function is based on the fastSpawn pattern rather than being a
2726
replacement for the deprecated global `spawn` function. It is recommended
@@ -55,12 +54,11 @@ functions:
5554
Calls/resumes a function/coroutine on the next resumption cycle.
5655
description: |
5756
Accepts a function or a thread (as returned by coroutine.create) and
58-
defers it until the next
57+
defers it until the end of the current
5958
[resumption cycle](https://devforum.roblox.com/t/1240569), at which point
6059
it is resumed with the engine's scheduler like with
6160
`Library.task.spawn()`. Arguments after the first are sent to the
62-
function/thread. This function does not return any value, even if the
63-
provided function returns one immediately.
61+
function/thread.
6462
6563
This function should be used when a similar behavior to
6664
`Library.task.spawn()` is desirable, but the thread does not need to run

0 commit comments

Comments
 (0)