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

Function async

packages/effect/src/Micro.ts:1197–1202  ·  view source on GitHub ↗
(
  register: (
    resume: (effect: Micro<A, E, R>) => void,
    signal: AbortSignal
  ) => void | Micro<void, never, R>
)

Source from the content-addressed store, hash-verified

1195 * @category constructors
1196 */
1197export const async = <A, E = never, R = never>(
1198 register: (
1199 resume: (effect: Micro<A, E, R>) => void,
1200 signal: AbortSignal
1201 ) => void | Micro<void, never, R>
1202): Micro<A, E, R> => asyncOptions(register as any, register.length >= 2)
1203
1204/**
1205 * A `Micro` that will never succeed or fail. It wraps `setInterval` to prevent

Callers 7

fiberAwaitFunction · 0.85
fiberInterruptAllFunction · 0.85
Micro.tsFile · 0.85
raceAllFunction · 0.85
raceAllFirstFunction · 0.85
sleepFunction · 0.85
forEachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected