bracket<B> method

ReaderTaskBuilder<ENV, B> bracket<B>({
  1. required ReaderTask<ENV, void> release(
    1. A
    ),
  2. required ReaderTask<ENV, B> use(
    1. A
    ),
})

Implementation

ReaderTaskBuilder<ENV, B> bracket<B>({
  required RT.ReaderTask<ENV, void> Function(A) release,
  required RT.ReaderTask<ENV, B> Function(A) use,
}) =>
    ReaderTaskBuilder(
      RT.bracket(
        use: use,
        release: release,
      )(_f),
    );