All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tofu.syntax.scoped.scala Maven / Gradle / Ivy

There is a newer version: 0.13.6
Show newest version
package tofu
package syntax

import cats.FlatMap
import tofu.interop.Blocker

object scoped extends ScopedSyntax {
  def withBlocker[F[_]: BlockExec: FlatMap, A](f: Blocker[F] => F[A]): F[A] =
    withScopedEc[Scoped.Blocking](ec => f(Blocker(ec)))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy