-
-
Notifications
You must be signed in to change notification settings - Fork 511
Task
Giulio Canti edited this page Sep 2, 2022
·
4 revisions
Task
is a lazy promise that can't fail, any example of a promise that can't fail?
import * as T from 'fp-ts/Task'
const task: T.Task<void> = () =>
new Promise((resolve) => setTimeout(resolve, 1000))
What's the difference between
ApplyPar
andApplySeq
ApplyPar
runs tasks in parallel, ApplySeq
runs tasks sequentially