Time

gopher.Time$
See theTime companion class
object Time

Attributes

Companion
class
Source
Time.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Time.type

Members list

Type members

Classlikes

trait Scheduled

Task, which can be cancelled.

Task, which can be cancelled.

Attributes

Source
Time.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class JVMScheduled

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)

Attributes

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

Attributes

Source
Time.scala
def asleep[F[_]](duration: FiniteDuration)(using Gopher[F]): F[FiniteDuration]

Attributes

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

Attributes

Source
Time.scala