api/interfaces/iruntime
Globals / IRuntime
Interface: IRuntime
Base runtime that is used to execute any QIO.
Runtime internally manages scheduling of jobs and their prioritization. Depends on ts-scheduler of internal job scheduling. Actual implementation is available at DefaultRuntime & TestRuntime.
Hierarchy
- IRuntime
Implemented by
Index
Properties
Methods
Properties
config
• Readonly config: FiberConfig
Defined in packages/core/lib/runtimes/IRuntime.ts:18
scheduler
• Readonly scheduler: IScheduler
Defined in packages/core/lib/runtimes/IRuntime.ts:19
Methods
configure
▸ configure(config: FiberConfig): IRuntime
Defined in packages/core/lib/runtimes/IRuntime.ts:20
Parameters:
| Name | Type |
|---|---|
config | FiberConfig |
Returns: IRuntime
unsafeExecute
▸ unsafeExecute<A, E>(io: QIO<A, E>, cb?: CBExit<A, E>): ICancellable
Defined in packages/core/lib/runtimes/IRuntime.ts:25
Executes the provided QIO expression.
Returns a ICancellable that can be used to interrupt the execution.
Type parameters:
| Name |
|---|
A |
E |
Parameters:
| Name | Type |
|---|---|
io | QIO<A, E> |
cb? | CBExit<A, E> |
Returns: ICancellable