MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeDispatcher

Method makeDispatcher

packages/effect/src/Scheduler.ts:188–190  ·  view source on GitHub ↗

* Creates a dispatcher that schedules work through this scheduler. * * **When to use** * * Use when you need a standalone dispatcher from a scheduler instance, for * example in tests that enqueue tasks and then flush them deterministically. * * @since 4.0.0

()

Source from the content-addressed store, hash-verified

186 * @since 4.0.0
187 */
188 makeDispatcher() {
189 return new MixedSchedulerDispatcher(this.setImmediate)
190 }
191}
192
193class MixedSchedulerDispatcher implements SchedulerDispatcher {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected