Method
Complete
func Complete(value: T) -> bool
Declaring type: Promise<T>
Module: System.Concurrency.Tasks
Assembly: System.Runtime.dll
Source file: Tasks.rvn
Completes a pending task with a value and posts its registered callbacks.
Parameters
| Name | Type | Description |
|---|---|---|
value |
T | The task’s successful result, which may itself be a Result value. |
Return value
True if this call completed the task; false if it was already completed or cancelled.