Skip to content

AsyncBodyWithFin<A>

typedef AsyncBodyWithFin<A> = IO<Option<IO<Unit>>> Function(
  void Function(Either<Object, A>),
)

Like AsyncBody, but also returns an optional IO finalizer that is invoked if the resulting IO is canceled, used by IO.async.