Time

object Time
Companion:
class
Source:
Time.scala
class Object
trait Matchable
class Any
Time.type

Type members

Classlikes

trait Scheduled

Task, which can be cancelled.

Task, which can be cancelled.

Source:
Time.scala

Types

type after = FiniteDuration

Used in selector shugar for specyfying tineout.

Used in selector shugar for specyfying tineout.

select{
  ......
  case t: Time.after if t > expr =>  doSomething
}

is a sugar for to selectGroup.{..}.setTimeout(expr, t=>doSomething)

See also:

Select

Source:
Time.scala

Value members

Concrete methods

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

return channl on which event will be delivered after duration

return channl on which event will be delivered after duration

Source:
Time.scala
def asleep[F[_]](duration: FiniteDuration)(using Gopher[F]): F[FiniteDuration]
Source:
Time.scala
transparent inline def sleep[F[_]](duration: FiniteDuration)(using Gopher[F], CpsMonadContext[F]): FiniteDuration
Source:
Time.scala