TaskCompletionSource<T>

Overview

Location

Properties


Task

 

property Task: Task1<T> read;

 

Task1<T> Task { get; }

 

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

 

Task1<T> Task { __get; }

Instance Methods


constructor

 

constructor(aState: Object)

 

TaskCompletionSource<T>(Object aState)

 

init(_ aState: Object)

 

TaskCompletionSource<T>(Object aState)

Parameters:

  • aState:

SetException

 

method SetException(ex: Throwable)

 

void SetException(Throwable ex)

 

func SetException(_ ex: Throwable)

 

void SetException(Throwable ex)

Parameters:

  • ex:

SetResult

 

method SetResult(val: T)

 

void SetResult(T val)

 

func SetResult(_ val: T)

 

void SetResult(T val)

Parameters:

  • val: