Hyperlinkv0.8.0-beta.28

Sink

Sink.fromTransformconsteffect/Sink.ts:254
<In, A, E, R, L = never>(
  transform: (
    upstream: Pull.Pull<NonEmptyReadonlyArray<In>, never, void>,
    scope: Scope.Scope
  ) => Effect.Effect<End<A, L>, E, R>
): Sink<A, In, L, E, R>

Creates a Sink from a low-level transform function.

Details

The transform receives the upstream pull of non-empty input arrays and the active scope, and returns an effect that completes with the sink's End value.

constructors
Source effect/Sink.ts:25410 lines
export const fromTransform = <In, A, E, R, L = never>(
  transform: (
    upstream: Pull.Pull<NonEmptyReadonlyArray<In>, never, void>,
    scope: Scope.Scope
  ) => Effect.Effect<End<A, L>, E, R>
): Sink<A, In, L, E, R> => {
  const self = Object.create(SinkProto)
  self.transform = transform
  return self
}
Referenced by 28 symbols