object Concurrent extends Serializable
- Source
- Concurrent.scala
- Alphabetic
- By Inheritance
- Concurrent
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait AllOps[F[_], A] extends Ops[F, A] with Async.AllOps[F, A]
- trait Ops[F[_], A] extends AnyRef
- trait ToConcurrentOps 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: Concurrent[F]): Concurrent[F]
- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit
def
catsEitherTConcurrent[F[_], L](implicit arg0: Concurrent[F]): Concurrent[[γ$0$]EitherT[F, L, γ$0$]]
Concurrent instance built for
cats.data.EitherT
values initialized with anyF
data type that also implementsConcurrent
. -
implicit
def
catsKleisliConcurrent[F[_], R](implicit arg0: Concurrent[F]): Concurrent[[γ$2$]Kleisli[F, R, γ$2$]]
Concurrent instance built for
cats.data.Kleisli
values initialized with anyF
data type that also implementsConcurrent
. -
implicit
def
catsOptionTConcurrent[F[_]](implicit arg0: Concurrent[F]): Concurrent[[β$1$]OptionT[F, β$1$]]
Concurrent instance built for
cats.data.OptionT
values initialized with anyF
data type that also implementsConcurrent
. -
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](ioa: IO[A])(implicit F: Concurrent[F]): F[A]
Lifts any
IO
value into any data type implementing Concurrent.Lifts any
IO
value into any data type implementing Concurrent.Compared with Async.liftIO, this version preserves the interruptibility of the given
IO
value.This is the default
Concurrent.liftIO
implementation. -
def
memoize[F[_], A](f: F[A])(implicit F: Concurrent[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:
start
can be used for eager memoization. -
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
timeout[F[_], A](fa: F[A], duration: FiniteDuration)(implicit F: Concurrent[F], timer: Timer[F]): F[A]
Returns an effect that either completes with the result of the source within the specified time
duration
or otherwise raises aTimeoutException
.Returns an effect that either completes with the result of the source within the specified time
duration
or otherwise raises aTimeoutException
.The source is cancelled in the event that it takes longer than the specified time duration to complete.
- duration
is the time span for which we wait for the source to complete; in the event that the specified time has passed without the source completing, a
TimeoutException
is raised
-
def
timeoutTo[F[_], A](fa: F[A], duration: FiniteDuration, fallback: F[A])(implicit F: Concurrent[F], timer: Timer[F]): F[A]
Returns an effect that either completes with the result of the source within the specified time
duration
or otherwise evaluates thefallback
.Returns an effect that either completes with the result of the source within the specified time
duration
or otherwise evaluates thefallback
.The source is cancelled in the event that it takes longer than the
FiniteDuration
to complete, the evaluation of the fallback happening immediately after that.- duration
is the time span for which we wait for the source to complete; in the event that the specified time has passed without the source completing, the
fallback
gets evaluated- fallback
is the task evaluated after the duration has passed and the source canceled
-
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 ToConcurrentOps
- object ops
Deprecated Value Members
-
implicit
def
catsWriterTConcurrent[F[_], L](implicit arg0: Concurrent[F], arg1: Monoid[L]): Concurrent[[γ$3$]WriterT[F, L, γ$3$]]
Concurrent instance built for
cats.data.WriterT
values initialized with anyF
data type that also implementsConcurrent
.Concurrent instance built for
cats.data.WriterT
values initialized with anyF
data type that also implementsConcurrent
.- Annotations
- @deprecated
- Deprecated
(Since version 1.1.0) WARNING: currently the Concurrent[WriterT[F, L, ?]] instance is broken!
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):