effect-io-ai

Package: effect
Module: Stream

Stream.runHead

Runs the stream to completion and yields the first value emitted by it, discarding the rest of the elements.

Signature

declare const runHead: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<Option.Option<A>, E, R>

Source

Since v2.0.0