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

Function runHead

packages/effect/src/internal/stream.ts:5905–5907  ·  view source on GitHub ↗
(
  self: Stream.Stream<A, E, R>
)

Source from the content-addressed store, hash-verified

5903
5904/** @internal */
5905export const runHead = <A, E, R>(
5906 self: Stream.Stream<A, E, R>
5907): Effect.Effect<Option.Option<A>, E, R> => run(self, sink_.head<A>())
5908
5909/** @internal */
5910export const runIntoPubSub = dual<

Callers

nothing calls this directly

Calls 2

headMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected