Result<T>

Overview

Location

 

constructor

 

constructor(task: MicroTask<T>)

 

Result<T>(MicroTask<T> task)

 

init(_ task: MicroTask<T>)

 

Sub New(task As MicroTask<T>)

Parameters:

  • task:

Done

 

class method Done(value: T): Result<T>

 

static Result<T> Done(T value)

 

static func Done(_ value: T) -> Result<T>

 

Shared Function Done(value As T) As Result<T>

Parameters:

  • value:

FromResult

 

class method FromResult(value: T): Result<T>

 

static Result<T> FromResult(T value)

 

static func FromResult(_ value: T) -> Result<T>

 

Shared Function FromResult(value As T) As Result<T>

Parameters:

  • value:

GetAwaiter

 

method GetAwaiter: VoidResultAwaiter

 

VoidResultAwaiter GetAwaiter()

 

func GetAwaiter() -> VoidResultAwaiter

 

Function GetAwaiter() As VoidResultAwaiter

GetResult

 

method GetResult: T

 

T GetResult()

 

func GetResult() -> T

 

Function GetResult() As T

IsCompleted

 

property IsCompleted: Boolean read;

 

Boolean IsCompleted { get; }

 

var IsCompleted: Boolean { get{} }

 

ReadOnly Property IsCompleted() As Boolean

OnComplete

 

method OnComplete(callback: IAsyncCompletion)

 

void OnComplete(IAsyncCompletion callback)

 

func OnComplete(_ callback: IAsyncCompletion)

 

Sub OnComplete(callback As IAsyncCompletion)

Parameters:

  • callback:

Task

 

property Task: MicroTask<T> read;

 

MicroTask<T> Task { get; }

 

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

 

ReadOnly Property Task() As MicroTask<T>

 

IsCompleted

 

property IsCompleted: Boolean read;

 

Boolean IsCompleted { get; }

 

var IsCompleted: Boolean { get{} }

 

ReadOnly Property IsCompleted() As Boolean

Task

 

property Task: MicroTask<T> read;

 

MicroTask<T> Task { get; }

 

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

 

ReadOnly Property Task() As MicroTask<T>

 

Done

 

class method Done(value: T): Result<T>

 

static Result<T> Done(T value)

 

static func Done(_ value: T) -> Result<T>

 

Shared Function Done(value As T) As Result<T>

Parameters:

  • value:

FromResult

 

class method FromResult(value: T): Result<T>

 

static Result<T> FromResult(T value)

 

static func FromResult(_ value: T) -> Result<T>

 

Shared Function FromResult(value As T) As Result<T>

Parameters:

  • value:

 

constructor

 

constructor(task: MicroTask<T>)

 

Result<T>(MicroTask<T> task)

 

init(_ task: MicroTask<T>)

 

Sub New(task As MicroTask<T>)

Parameters:

  • task:

GetAwaiter

 

method GetAwaiter: VoidResultAwaiter

 

VoidResultAwaiter GetAwaiter()

 

func GetAwaiter() -> VoidResultAwaiter

 

Function GetAwaiter() As VoidResultAwaiter

GetResult

 

method GetResult: T

 

T GetResult()

 

func GetResult() -> T

 

Function GetResult() As T

OnComplete

 

method OnComplete(callback: IAsyncCompletion)

 

void OnComplete(IAsyncCompletion callback)

 

func OnComplete(_ callback: IAsyncCompletion)

 

Sub OnComplete(callback As IAsyncCompletion)

Parameters:

  • callback: