Result<T>

Overview

Location

 

constructor

 

constructor

 

Result<T>()

 

init()

 

Result<T>()

 

Sub New()

constructor (MicroTask<T>)

 

constructor(task: MicroTask<T>)

 

Result<T>(MicroTask<T> task)

 

init(_ task: MicroTask<T>)

 

Result<T>(MicroTask<T> task)

 

Sub New(task As MicroTask<T>)

Parameters:

  • task:

constructor (Result<T>)

 

constructor(value: Result<T>)

 

Result<T>(Result<T> value)

 

init(_ value: Result<T>)

 

Result<T>(Result<T> value)

 

Sub New(value As Result<T>)

Parameters:

  • value:

clone

 

method clone: Object

 

Object clone()

 

func clone() -> Object

 

Object clone()

 

Function clone() As Object

Done

 

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

 

static Result<T> Done(T value)

 

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

 

static Result<T> Done(T value)

 

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>

 

static Result<T> FromResult(T value)

 

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

Parameters:

  • value:

GetResult

 

method GetResult: T

 

T GetResult()

 

func GetResult() -> T

 

T GetResult()

 

Function GetResult() As T

IsCompleted

 

property IsCompleted: Boolean read;

 

Boolean IsCompleted { get; }

 

var IsCompleted: Boolean { get{} }

 

Boolean IsCompleted { __get; }

 

ReadOnly Property IsCompleted() As Boolean

OnComplete

 

method OnComplete(callback: IAsyncCompletion)

 

void OnComplete(IAsyncCompletion callback)

 

func OnComplete(_ callback: IAsyncCompletion)

 

void OnComplete(IAsyncCompletion callback)

 

Sub OnComplete(callback As IAsyncCompletion)

Parameters:

  • callback:

Task

 

property Task: MicroTask<T> read;

 

MicroTask<T> Task { get; }

 

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

 

MicroTask<T> Task { __get; }

 

ReadOnly Property Task() As MicroTask<T>

 

IsCompleted

 

property IsCompleted: Boolean read;

 

Boolean IsCompleted { get; }

 

var IsCompleted: Boolean { get{} }

 

Boolean IsCompleted { __get; }

 

ReadOnly Property IsCompleted() As Boolean

Task

 

property Task: MicroTask<T> read;

 

MicroTask<T> Task { get; }

 

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

 

MicroTask<T> Task { __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>

 

static Result<T> Done(T value)

 

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>

 

static Result<T> FromResult(T value)

 

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

Parameters:

  • value:

 

constructor

 

constructor

 

Result<T>()

 

init()

 

Result<T>()

 

Sub New()

constructor (MicroTask<T>)

 

constructor(task: MicroTask<T>)

 

Result<T>(MicroTask<T> task)

 

init(_ task: MicroTask<T>)

 

Result<T>(MicroTask<T> task)

 

Sub New(task As MicroTask<T>)

Parameters:

  • task:

constructor (Result<T>)

 

constructor(value: Result<T>)

 

Result<T>(Result<T> value)

 

init(_ value: Result<T>)

 

Result<T>(Result<T> value)

 

Sub New(value As Result<T>)

Parameters:

  • value:

clone

 

method clone: Object

 

Object clone()

 

func clone() -> Object

 

Object clone()

 

Function clone() As Object

GetResult

 

method GetResult: T

 

T GetResult()

 

func GetResult() -> T

 

T GetResult()

 

Function GetResult() As T

OnComplete

 

method OnComplete(callback: IAsyncCompletion)

 

void OnComplete(IAsyncCompletion callback)

 

func OnComplete(_ callback: IAsyncCompletion)

 

void OnComplete(IAsyncCompletion callback)

 

Sub OnComplete(callback As IAsyncCompletion)

Parameters:

  • callback: