Unwraps a Result inside a Result.safeTry generator body via
yield*, emulating Rust's ? operator.
If the Result is Ok, the yield* expression evaluates to the contained
value and execution continues. If it is Err, the error is yielded to
Result.safeTry, which returns it immediately — the rest of the
generator body never runs.
This generator must only be delegated to (yield*) inside a
Result.safeTry body; resuming it after it has yielded an Err
throws.
Unwraps a
Resultinside a Result.safeTry generator body viayield*, emulating Rust's?operator.If the
ResultisOk, theyield*expression evaluates to the contained value and execution continues. If it isErr, the error is yielded to Result.safeTry, which returns it immediately — the rest of the generator body never runs.This generator must only be delegated to (
yield*) inside a Result.safeTry body; resuming it after it has yielded anErrthrows.