Streams text output from a module asynchronously.
Returns a promise that resolves to an async generator.
Only ordinary PredictModule objects are supported. Modules and composites
with specialized forward() semantics are rejected before provider work;
use run() for their complete workflows.
Examples
if (FALSE) { # \dontrun{
stream_async(mod, question = "Write a story") |>
promises::then(function(gen) {
# Process async generator
})
} # }