object Clock extends LowPriorityImplicits with ClockPlatform
- Source
- Clock.scala
- Alphabetic
- By Inheritance
- Clock
- ClockPlatform
- LowPriorityImplicits
- LowerPriorityImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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 ev: Clock[F]): Clock[F]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def create[F[_]](implicit F: Sync[F]): Clock[F]
Provides Clock instance for any
F
that hasSync
defined - implicit def deriveEitherT[F[_], L](implicit F: Functor[F], clock: Clock[F]): Clock[[γ$0$]EitherT[F, L, γ$0$]]
Derives a Clock instance for
cats.data.EitherT
, given we have one forF[_]
.Derives a Clock instance for
cats.data.EitherT
, given we have one forF[_]
.- Definition Classes
- LowPriorityImplicits
- implicit def deriveIorT[F[_], L](implicit F: Applicative[F], clock: Clock[F]): Clock[[γ$10$]IorT[F, L, γ$10$]]
Derives a Clock instance for
cats.data.IorT
, given we have one forF[_]
.Derives a Clock instance for
cats.data.IorT
, given we have one forF[_]
.- Definition Classes
- LowPriorityImplicits
- implicit def deriveKleisli[F[_], R](implicit clock: Clock[F]): Clock[[γ$8$]Kleisli[F, R, γ$8$]]
Derives a Clock instance for
cats.data.Kleisli
, given we have one forF[_]
.Derives a Clock instance for
cats.data.Kleisli
, given we have one forF[_]
.- Definition Classes
- LowPriorityImplicits
- implicit def deriveOptionT[F[_]](implicit F: Functor[F], clock: Clock[F]): Clock[[β$2$]OptionT[F, β$2$]]
Derives a Clock instance for
cats.data.OptionT
, given we have one forF[_]
.Derives a Clock instance for
cats.data.OptionT
, given we have one forF[_]
.- Definition Classes
- LowPriorityImplicits
- implicit def deriveResource[F[_]](implicit F: Applicative[F], clock: Clock[F]): Clock[[β$12$]Resource[F, β$12$]]
Derives a Clock instance for
cats.effect.Resource
, given we have one forF[_]
.Derives a Clock instance for
cats.effect.Resource
, given we have one forF[_]
.- Definition Classes
- LowPriorityImplicits
- implicit def deriveStateT[F[_], S](implicit F: Applicative[F], clock: Clock[F]): Clock[[γ$4$]IndexedStateT[F, S, S, γ$4$]]
Derives a Clock instance for
cats.data.StateT
, given we have one forF[_]
.Derives a Clock instance for
cats.data.StateT
, given we have one forF[_]
.- Definition Classes
- LowPriorityImplicits
- implicit def deriveWriterT[F[_], L](implicit F: Applicative[F], L: Monoid[L], clock: Clock[F]): Clock[[γ$6$]WriterT[F, L, γ$6$]]
Derives a Clock instance for
cats.data.WriterT
, given we have one forF[_]
.Derives a Clock instance for
cats.data.WriterT
, given we have one forF[_]
.- Definition Classes
- LowPriorityImplicits
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def extractFromTimer[F[_]](implicit timer: Timer[F]): Clock[F]
Default implicit instance — given there's an implicit Timer in scope, extracts a Clock instance from it.
Default implicit instance — given there's an implicit Timer in scope, extracts a Clock instance from it.
- Definition Classes
- LowerPriorityImplicits
- 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
- 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()
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
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):