api/classes/testruntime
Globals / TestRuntime
Class: TestRuntime
Hierarchy
-
↳ TestRuntime
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
+ new TestRuntime(scheduler
: TestScheduler, config
: FiberConfig): TestRuntime
Defined in packages/core/lib/runtimes/TestRuntime.ts:14
Parameters:
Name | Type |
---|---|
scheduler | TestScheduler |
config | FiberConfig |
Returns: TestRuntime
Properties
config
• Readonly
config: FiberConfig
Implementation of IRuntime.config
Overrides FiberRuntime.config
Defined in packages/core/lib/runtimes/TestRuntime.ts:17
scheduler
• Readonly
scheduler: TestScheduler
Implementation of IRuntime.scheduler
Overrides FiberRuntime.scheduler
Defined in packages/core/lib/runtimes/TestRuntime.ts:16
Methods
configure
▸ configure(config
: FiberConfig): TestRuntime
Implementation of IRuntime
Overrides FiberRuntime.configure
Defined in packages/core/lib/runtimes/TestRuntime.ts:21
Parameters:
Name | Type |
---|---|
config | FiberConfig |
Returns: TestRuntime
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
unsafeExecuteSync
▸ unsafeExecuteSync<A, E>(io
: QIO<A, E>): A | E | undefined
Defined in packages/core/lib/runtimes/TestRuntime.ts:24
Type parameters:
Name |
---|
A |
E |
Parameters:
Name | Type |
---|---|
io | QIO<A, E> |
Returns: A | E | undefined
unsafeExecuteSync0
▸ unsafeExecuteSync0<A, E>(io
: QIO<A, E>): Exit<A, E> | undefined
Defined in packages/core/lib/runtimes/TestRuntime.ts:31
Type parameters:
Name |
---|
A |
E |
Parameters:
Name | Type |
---|---|
io | QIO<A, E> |
Returns: Exit<A, E> | undefined