method Source.fromResults
Source.fromResults<
T,
E,
>
(source: () => AsyncGenerator<Result<T, E>>): Source<T, E>

Creates a Source from an async generator that yields Result values directly. This is useful when you want to yield both successes and errors from the source without terminating it on the first error.

Type Parameters

Parameters

source: () => AsyncGenerator<Result<T, E>>

Return Type

Usage

import { Source } from ".";