Clarified documentation of Task.group.

This commit is contained in:
blujai831 2024-01-07 09:28:08 -08:00
parent 4d2d82b199
commit eb720b6188
No known key found for this signature in database
GPG Key ID: DDC31A0363AA5E66
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ func sync() -> Variant:
## 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:
var thunk := func() -> Array:
var results := []