object Async extends Serializable
- Source
- Async.scala
- Alphabetic
- By Inheritance
- Async
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
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
-
def
apply[F[_]](implicit instance: Async[F]): Async[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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object nonInheritedOps extends ToAsyncOps
- object ops
Deprecated Value Members
-
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):