MCPcopy
hub / github.com/Effect-TS/effect / startFork

Method startFork

packages/effect/src/internal/fiberRuntime.ts:1027–1029  ·  view source on GitHub ↗

* Begins execution of the effect associated with this fiber on in the * background, and on the correct thread pool. This can be called to "kick * off" execution of a fiber after it has been created, in hopes that the * effect can be executed synchronously.

(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

1025 * effect can be executed synchronously.
1026 */
1027 startFork<R>(effect: Effect.Effect<A, E, R>): void {
1028 this.tell(FiberMessage.resume(effect))
1029 }
1030
1031 /**
1032 * Takes the current runtime flags, patches them to return the new runtime

Callers 1

fiberRuntime.tsFile · 0.80

Calls 2

tellMethod · 0.95
resumeMethod · 0.80

Tested by

no test coverage detected