Skip to content
Giulio Canti edited this page Sep 2, 2022 · 4 revisions

FAQ

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))
Clone this wiki locally