Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

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

Boolean

True if this call completed the task; false if it was already completed or cancelled.