Run a flow of results
type of the initial result
initial result
as final result
if uncontrolled error from callback
const res: Promise<IResult<string>> = resultAsyncFlow( Ok('hello'), (value) => Ok(`${value} world`), (value) => Ok(value.length), (value) => Ok(value.toString()),); Copy
const res: Promise<IResult<string>> = resultAsyncFlow( Ok('hello'), (value) => Ok(`${value} world`), (value) => Ok(value.length), (value) => Ok(value.toString()),);
v1.2.1
Run a flow of results