Skip to content

Instantly share code, notes, and snippets.

@gvolpe
Created July 27, 2018 02:50
Show Gist options
  • Save gvolpe/96621a9892920027bed938f50fa353c8 to your computer and use it in GitHub Desktop.
Save gvolpe/96621a9892920027bed938f50fa353c8 to your computer and use it in GitHub Desktop.
def blocking[F[_], A](fa: F[A])(implicit F: Async[F], timer: Timer[F]): F[A] =
F.bracket(Async.shift(blockingPool))(_ => ....)(_ => timer.shift)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment