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

Function callback

packages/effect/src/internal/effect.ts:1342–1351  ·  view source on GitHub ↗
(
  register: (
    this: Scheduler.Scheduler,
    resume: (effect: Effect.Effect<A, E, R>) => void,
    signal: AbortSignal
  ) => void | Effect.Effect<void, E, R>,
  options?: {
    readonly blockedOn?: object | undefined
  } | undefined
)

Source from the content-addressed store, hash-verified

1340
1341/** @internal */
1342export const callback = <A, E = never, R = never>(
1343 register: (
1344 this: Scheduler.Scheduler,
1345 resume: (effect: Effect.Effect<A, E, R>) => void,
1346 signal: AbortSignal
1347 ) => void | Effect.Effect<void, E, R>,
1348 options?: {
1349 readonly blockedOn?: object | undefined
1350 } | undefined
1351): Effect.Effect<A, E, R> => callbackOptions(register as any, register.length >= 2, options?.blockedOn)
1352
1353/**
1354 * `callback` for a register that never reads the AbortSignal. Internal waits

Callers 6

effect.tsFile · 0.70
writeFunction · 0.50
endFunction · 0.50
compileCallbackFunction · 0.50
compileCheckFunction · 0.50
onFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected