flowAsync
Creates an async pipeline that awaits each step before passing the result
to the next function. Like flow from es-toolkit but async-aware.
Each function can return a value or a Promise — flowAsync always returns
a Promise that resolves to the final step's awaited result.
Usage
flowAsync(...functions)
Creates an async pipeline that awaits each step before passing the result
to the next function. Like flow from es-toolkit but async-aware.
Each function can return a value or a Promise — flowAsync always returns
a Promise that resolves to the final step's awaited result.
Parameters
the first pipeline function. It receives every argument passed to the composed function.
the remaining pipeline functions. Each receives the awaited result of the previous function.
Returns
a composed function that always resolves to the awaited result of the final pipeline step.