Packages

class Time extends AnyRef

Time API, simular to one in golang standard library.

See also

gopherApi#time

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Time
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Time(gopherAPI: GopherAPI, ec: ExecutionContext)

Type Members

  1. class Ticker extends AnyRef

Value Members

  1. def after(duration: FiniteDuration): Input[Instant]
  2. def asleep(duration: FiniteDuration): Future[Instant]
  3. def newTicker(duration: FiniteDuration): Channel[Instant]
  4. def now(): Instant
  5. macro def sleep(duration: FiniteDuration): Instant
  6. def tick(duration: FiniteDuration): Input[Instant]

    create ticker.

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