Class Future

Index

Constructor methods

Methods

Constructor methods

constructor(): Future

Returns

Future

Methods

public detach()

public get(): any

Returns

any

public isResolved(): boolean

Returns

boolean

public proxy(future: Future)

Parameters

public proxyErrors(futureOrList: any): Future

Parameters

  • futureOrList: any

Returns

Future

public resolve(fn: Function)

Parameters

  • fn: Function

public resolveSuccess(fn: Function)

Parameters

  • fn: Function

public resolver(): Function

Returns

Function

public return(result?: any)

Parameters

  • result?: any optional

public throw(error: any)

Parameters

  • error: any

public wait()

public static wait(future: Future): any

Parameters

Returns

any

public static wait(future_list: Future[]): any

Parameters

Returns

any

public static wrap(fn: Function): Future

Parameters

  • fn: Function

Returns

Future