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

API Browser

Method

SetResult

func SetResult(value: T) -> ()

Declaring type: AsyncTaskMethodBuilder<T>
Module: System.Runtime.CompilerServices
Assembly: System.Runtime.dll
Source file: Tasks.rvn

Releases the retained state and completes the task with a value.

Parameters

Name Type Description
value T The completed payload, including unit or Result values.

Return value

()