Lift from function returning value/promise to function returning task resolving to that value
Userfull for converting exising async functions to task functions for further use
returned function's argument types
returned function's result task's resolve type
function returning promise or plain value to be resolved
Rest
task function wrapping specified promise function
Task.fromPromise
const taskFunction = liftPromiseFunction(someAsyncOperation);const task = taskFunction('someData').map((result) => result.length); Copy
const taskFunction = liftPromiseFunction(someAsyncOperation);const task = taskFunction('someData').map((result) => result.length);
Generated using TypeDoc
Lift from function returning value/promise to function returning task resolving to that value
Userfull for converting exising async functions to task functions for further use