then
then :: (Function fn, Any|Promise<Any> input) => Any|Promise<Any> outputdescription
example
synchronous example
import { then } from 'conductor'
const double = x => 2 * x
then(double, 2) // 4asynchronous example
import { then } from 'conductor'
const double = x => 2 * x
then(double, Promise.resolve(2)) // Promise<pending>
await(double, Promise.resolve(2)) // 4Last updated