sync<A> static method

Effect<A, Object, Never> sync<A>(
  1. A computation()
)

Creates an effect from a synchronous computation that might throw

Implementation

static Effect<A, Object, Never> sync<A>(A Function() computation) =>
    _Sync(computation);