api/classes/defaultruntime
Globals / DefaultRuntime
Class: DefaultRuntime
Hierarchy
-
↳ DefaultRuntime
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
+ new DefaultRuntime(scheduler
: IScheduler, config
: FiberConfig): DefaultRuntime
Defined in packages/core/lib/runtimes/DefaultRuntime.ts:9
Parameters:
Name | Type |
---|---|
scheduler | IScheduler |
config | FiberConfig |
Returns: DefaultRuntime
Properties
config
• Readonly
config: FiberConfig
Implementation of IRuntime.config
Overrides FiberRuntime.config
Defined in packages/core/lib/runtimes/DefaultRuntime.ts:12
scheduler
• Readonly
scheduler: IScheduler
Implementation of IRuntime.scheduler
Overrides FiberRuntime.scheduler
Defined in packages/core/lib/runtimes/DefaultRuntime.ts:11
Methods
configure
▸ configure(config
: FiberConfig): DefaultRuntime
Implementation of IRuntime
Overrides FiberRuntime.configure
Defined in packages/core/lib/runtimes/DefaultRuntime.ts:17
Parameters:
Name | Type |
---|---|
config | FiberConfig |
Returns: DefaultRuntime
unsafeExecute
▸ unsafeExecute<A, E>(io
: QIO<A, E>, cb?
: CBExit<A, E>): ICancellable
Implementation of IRuntime
Inherited from FiberRuntime.unsafeExecute
Defined in packages/core/lib/runtimes/FiberRuntime.ts:17
Type parameters:
Name |
---|
A |
E |
Parameters:
Name | Type |
---|---|
io | QIO<A, E> |
cb? | CBExit<A, E> |
Returns: ICancellable
unsafeExecutePromise
▸ unsafeExecutePromise<A, E>(io
: QIO<A, E>): Promise<A>
Defined in packages/core/lib/runtimes/DefaultRuntime.ts:21
Type parameters:
Name |
---|
A |
E |
Parameters:
Name | Type |
---|---|
io | QIO<A, E> |
Returns: Promise<A>