bracket<B> method

IOBuilder<B> bracket<B>({
  1. required IO<B> use(
    1. A
    ),
  2. required IO<void> release(
    1. A
    ),
})

Implementation

IOBuilder<B> bracket<B>({
  required I.IO<B> Function(A) use,
  required I.IO<void> Function(A) release,
}) =>
    IOBuilder(
      I.bracket(
        release: release,
        use: use,
      )(_f),
    );