JVMTime

class JVMTime[F[_]](gopherAPI: JVMGopher[F]) extends Time[F]
class Time[F]
class Object
trait Matchable
class Any

Type members

Classlikes

class JVMScheduled(fun: () => Unit, delay: FiniteDuration) extends Scheduled

Inherited classlikes

class Ticker(duration: FiniteDuration)

ticker which hold channel with expirable tick messages and iterface to stop one.

ticker which hold channel with expirable tick messages and iterface to stop one.

Inherited from:
Time
Source:
Time.scala

Inherited types

type after = FiniteDuration

type for using in select paterns.

type for using in select paterns.

See also:

[gopher.Select]

Inherited from:
Time
Source:
Time.scala

Value members

Concrete methods

def schedule(fun: () => Unit, delay: FiniteDuration): Scheduled

Inherited methods

def after(duration: FiniteDuration): ReadChannel[F, FiniteDuration]

return channel, then after duration ellapses, send signal to this channel.

return channel, then after duration ellapses, send signal to this channel.

Inherited from:
Time
Source:
Time.scala
def asleep(duration: FiniteDuration): F[FiniteDuration]

return future which will be filled after time will ellapse.

return future which will be filled after time will ellapse.

Inherited from:
Time
Source:
Time.scala
def newTicker(duration: FiniteDuration): Ticker

create ticker with given duration between ticks.

create ticker with given duration between ticks.

See also:

[gopher.Time.Ticker]

Inherited from:
Time
Source:
Time.scala
def now(): FiniteDuration
Inherited from:
Time
Source:
Time.scala
transparent inline def sleep(duration: FiniteDuration)(using CpsMonadContext[F]): FiniteDuration

synonim for await(asleep(duration)). Should be used inside async block.

synonim for await(asleep(duration)). Should be used inside async block.

Inherited from:
Time
Source:
Time.scala
def tick(duration: FiniteDuration): ReadChannel[F, FiniteDuration]

create ticker. When somebody read this ticker, than one receive duration messages. When nobody reading - messages are expired.

create ticker. When somebody read this ticker, than one receive duration messages. When nobody reading - messages are expired.

Inherited from:
Time
Source:
Time.scala