/ fm / liveswitch / FutureBase
Class: FutureBase<T>
fm.liveswitch.FutureBase
Future base properties/methods.
Type parameters
Name |
---|
T |
Hierarchy
FutureBase
↳ Future
Table of contents
Constructors
Methods
Constructors
constructor
+ new FutureBase<T>(): FutureBase<T>
Type parameters:
Name |
---|
T |
Returns: FutureBase<T>
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:17
Methods
getException
▸ getException(): Exception
Gets the exception if rejected.
Returns: Exception
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:35
getResult
▸ getResult(): T
Gets the result if resolved.
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:47
getState
▸ getState(): FutureState
Gets the current state.
Returns: FutureState
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:59
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:9
setException
▸ Protected
setException(value
: Exception): void
Sets the exception if rejected.
Parameters:
Name | Type |
---|---|
value |
Exception |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:71
setResult
▸ Protected
setResult(value
: T): void
Sets the result if resolved.
Parameters:
Name | Type |
---|---|
value |
T |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:83
setState
▸ Protected
setState(value
: FutureState): void
Sets the current state.
Parameters:
Name | Type |
---|---|
value |
FutureState |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/FutureBase.ts:95