A generator function that yields effects and returns a final value.
It receives an AbortSignal and an internal context record.
OptionallocalContext: booleanWhen true, the generator operates on a shallow copy of
the dependency context, isolating mutations from the outer scope
An Effect whose success value is the generator's return value, with error and dependency types inferred from the yielded effects
Inside the generator, use yield* to unwrap other effects and obtain their
success values. The generator receives an AbortSignal for cancellation
awareness and a context record for internal dependency propagation.
Errors thrown by any yielded effect will propagate as the error type of the resulting effect. Dependencies required by yielded effects are automatically tracked and surfaced in the return type (minus any that are provided internally).
Creates an Effect from a generator function, enabling imperative-style
yield*syntax for composing effects.