JSTime

gopher.impl.JSTime
class JSTime[F[_]](gopherAPI: JSGopher[F]) extends Time[F]

Attributes

Source
JSTime.scala
Graph
Supertypes
class Time[F]
class Object
trait Matchable
class Any

Members list

Type members

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.

Attributes

Inherited from:
Time
Source
Time.scala
Supertypes
class Object
trait Matchable
class Any

Inherited types

type after = FiniteDuration

type for using in select paterns.

type for using in select paterns.

Attributes

See also

[gopher.Select]

Inherited from:
Time
Source
Time.scala

Value members

Concrete methods

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

Low level interface for scheduler

Low level interface for scheduler

Attributes

Source
JSTime.scala

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.

Attributes

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.

Attributes

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.

Attributes

See also

[gopher.Time.Ticker]

Inherited from:
Time
Source
Time.scala
def now(): FiniteDuration

Attributes

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.

Attributes

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.

Attributes

Inherited from:
Time
Source
Time.scala