An async generator that yields the provided value once
Description
This function creates an async generator that yields the given value
exactly once and then completes. It supports both synchronous values
and promises, waiting for the promise to resolve before yielding.
Example
// Yield a single value constresult = awaitG.pipe( G.yield(42), G.array ); // [42]
// Yield a promised value constresult = awaitG.pipe( G.yield(Promise.resolve("hello")), G.array ); // ["hello"]
Creates a producer that yields a single value once.