Time

object Time
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

trait Scheduled

Task, which can be cancelled.

Task, which can be cancelled.

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

Value members

Concrete methods

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