Clarified documentation of Task.group.
This commit is contained in:
parent
4d2d82b199
commit
eb720b6188
|
@ -27,7 +27,8 @@ func sync() -> Variant:
|
||||||
|
|
||||||
## Creates a Task which can only finish when all subtasks have finished.
|
## Creates a Task which can only finish when all subtasks have finished.
|
||||||
##
|
##
|
||||||
## Returns an array of the tasks' results in the same respective order.
|
## Syncing the task will return an array of the tasks' results
|
||||||
|
## in the same respective order.
|
||||||
static func group(subtasks: Array[Task]) -> Task:
|
static func group(subtasks: Array[Task]) -> Task:
|
||||||
var thunk := func() -> Array:
|
var thunk := func() -> Array:
|
||||||
var results := []
|
var results := []
|
||||||
|
|
Loading…
Reference in New Issue