MCPcopy Create free account
hub / github.com/effect-app/libs / toTransform

Function toTransform

repos/effect/packages/effect/src/Channel.ts:424–429  ·  view source on GitHub ↗
(
  channel: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>
)

Source from the content-addressed store, hash-verified

422 * **Example** (Extracting channel transforms)
423 *
424 * ```ts import.meta.vitest
425 * import { Channel, Effect } from "effect"
426 *
427 * const channel = Channel.succeed(42)
428 * const transform = Channel.toTransform(channel)
429 * typeof transform // => "function"
430 * Effect.runSync(Channel.runCollect(channel)) // => [42]
431 * ```
432 *

Callers 8

transformPullFunction · 0.85
suspendFunction · 0.85
acquireUseReleaseFunction · 0.85
mapEffectSequentialFunction · 0.85
mapEffectConcurrentFunction · 0.85
Channel.tsFile · 0.85
flatMapSequentialFunction · 0.85
runSideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…