TaskCompletionSource<T>

Overview

Location

Properties


Task

 

property Task: Task1<T> read;

 

Task1<T> Task { get; }

 

var Task: Task1<T> { get{} }

 

Task1<T> Task { __get; }

 

ReadOnly Property Task() As Task1<T>

Instance Methods


constructor

 

constructor(aState: Object)

 

TaskCompletionSource<T>(Object aState)

 

init(_ aState: Object)

 

TaskCompletionSource<T>(Object aState)

 

Sub New(aState As Object)

Parameters:

  • aState:

SetException

 

method SetException(ex: Throwable)

 

void SetException(Throwable ex)

 

func SetException(_ ex: Throwable)

 

void SetException(Throwable ex)

 

Sub SetException(ex As Throwable)

Parameters:

  • ex:

SetResult

 

method SetResult(val: T)

 

void SetResult(T val)

 

func SetResult(_ val: T)

 

void SetResult(T val)

 

Sub SetResult(val As T)

Parameters:

  • val: