object Async extends Serializable
- Source
- Async.scala
- Alphabetic
- By Inheritance
- Async
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AllOps[F[_], A] extends Ops[F, A] with Sync.AllOps[F, A] with LiftIO.AllOps[F, A]
- trait Ops[F[_], A] extends AnyRef
- trait ToAsyncOps extends AnyRef
- class ops$ extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def ReaderWriterStateTAsync[F[_], E, L, S](implicit arg0: Async[F], arg1: Monoid[L]): Async[[ε$6$]IndexedReaderWriterStateT[F, E, L, S, S, ε$6$]]
Async instance built for
cats.data.ReaderWriterStateT
values initialized with anyF
data type that also implementsAsync
. - def apply[F[_]](implicit instance: Async[F]): Async[F]
Summon an instance of Async for
F
.Summon an instance of Async for
F
.- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def catsEitherTAsync[F[_], L](implicit arg0: Async[F]): Async[[γ$0$]EitherT[F, L, γ$0$]]
Async instance built for
cats.data.EitherT
values initialized with anyF
data type that also implementsAsync
. - implicit def catsIorTAsync[F[_], L](implicit arg0: Async[F], arg1: Semigroup[L]): Async[[γ$5$]IorT[F, L, γ$5$]]
Async instance built for
cats.data.IorT
values initialized with anyF
data type that also implementsAsync
. - implicit def catsKleisliAsync[F[_], R](implicit arg0: Async[F]): Async[[γ$4$]Kleisli[F, R, γ$4$]]
Async instance built for
cats.data.Kleisli
values initialized with anyF
data type that also implementsAsync
. - implicit def catsOptionTAsync[F[_]](implicit arg0: Async[F]): Async[[β$1$]OptionT[F, β$1$]]
Async instance built for
cats.data.OptionT
values initialized with anyF
data type that also implementsAsync
. - implicit def catsStateTAsync[F[_], S](implicit arg0: Async[F]): Async[[γ$2$]IndexedStateT[F, S, S, γ$2$]]
Async instance built for
cats.data.StateT
values initialized with anyF
data type that also implementsAsync
. - implicit def catsWriterTAsync[F[_], L](implicit arg0: Async[F], arg1: Monoid[L]): Async[[γ$3$]WriterT[F, L, γ$3$]]
Async instance built for
cats.data.WriterT
values initialized with anyF
data type that also implementsAsync
. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromFuture[F[_], A](fa: F[Future[A]])(implicit F: Async[F], cs: ContextShift[F]): F[A]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def liftIO[F[_], A](io: IO[A])(implicit F: Async[F]): F[A]
Lifts any
IO
value into any data type implementing Async.Lifts any
IO
value into any data type implementing Async.This is the default
Async.liftIO
implementation. - def memoize[F[_], A](f: F[A])(implicit F: Async[F]): F[F[A]]
Lazily memoizes
f
.Lazily memoizes
f
. For every time the returnedF[F[A]]
is bound, the effectf
will be performed at most once (when the innerF[A]
is bound the first time).Note: This version of
memoize
does not support interruption. UseConcurrent.memoize
if you need that. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val ops: ops$
- def parReplicateAN[M[_], A](n: Long)(replicas: Int, ma: M[A])(implicit M: Async[M], P: Parallel[M]): M[List[A]]
Like
Parallel.parReplicateA
, but limits the degree of parallelism. - def parSequenceN[T[_], M[_], A](n: Long)(tma: T[M[A]])(implicit arg0: Traverse[T], M: Async[M], P: Parallel[M]): M[T[A]]
Like
Parallel.parSequence
, but limits the degree of parallelism. - def parTraverseN[T[_], M[_], A, B](n: Long)(ta: T[A])(f: (A) => M[B])(implicit arg0: Traverse[T], M: Async[M], P: Parallel[M]): M[T[B]]
Like
Parallel.parTraverse
, but limits the degree of parallelism. - def shift[F[_]](ec: ExecutionContext)(implicit F: Async[F]): F[Unit]
Generic shift operation, defined for any
Async
data type.Generic shift operation, defined for any
Async
data type.Shifts the bind continuation onto the specified thread pool. Analogous with IO.shift.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object nonInheritedOps extends ToAsyncOps
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def never[F[_], A](implicit F: Async[F]): F[A]
Returns an non-terminating
F[_]
, that never completes with a result, being equivalent withasync(_ => ())
.Returns an non-terminating
F[_]
, that never completes with a result, being equivalent withasync(_ => ())
.- Annotations
- @deprecated
- Deprecated
(Since version 0.10) Moved to Async[F]
This is the API documentation for the cats-effect library.
See the cats.effect package for a quick overview.
Links
Canonical documentation links:
Related Cats links (the core):