A deferred synchronous computation: the thunk IO.from wraps.
IO.from
No signature in the package requires it; it is offered so callers can name an effect before handing it to IO.
IO
The value the effect produces.
import { IO, type Effect } from '@b-jones-rfd/func-help'const now: Effect<number> = () => Date.now()const time = IO.from(now) Copy
import { IO, type Effect } from '@b-jones-rfd/func-help'const now: Effect<number> = () => Date.now()const time = IO.from(now)
A deferred synchronous computation: the thunk
IO.fromwraps.No signature in the package requires it; it is offered so callers can name an effect before handing it to
IO.