Deprecated method, which happened on extending FunctionK
.
Provides extension methods when imported in scope via syntax.
Provides extension methods when imported in scope via syntax.
import monix.catnap.syntax._
Accessor for FutureLift values that are in scope.
Accessor for FutureLift values that are in scope.
import cats.effect.IO import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global val F = FutureLift[IO, Future] val task: IO[Int] = F.apply(IO(Future(1 + 1)))
Applies FutureLift.apply to the given parameter.
Applies FutureLift.apply to the given parameter.
import cats.effect.IO import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global val ioa = FutureLift.from(IO(Future(1 + 1)))
Implicit instance of FutureLift for converting from
scala.concurrent.Future or monix.execution.CancelableFuture to
any Concurrent
or Async
data type.
Utility for converting Future values into data types that implement cats.effect.Async.
Utility for converting Future values into data types that implement cats.effect.Async.
N.B. the implementation discriminates CancelableFuture via sub-typing, and if the given future is cancelable, then the resulting instance is also cancelable.
Utility for converting Future values into data types that implement cats.effect.Concurrent.
Utility for converting Future values into data types that implement cats.effect.Concurrent.
N.B. the implementation discriminates CancelableFuture via sub-typing, and if the given future is cancelable, then the resulting instance is also cancelable.
A generic function that subsumes both scalaToAsync and scalaToConcurrent.
A generic function that subsumes both scalaToAsync and scalaToConcurrent.
N.B. this works with monix.execution.CancelableFuture
if the given Future
is such an instance.