GlobalSoftDeadline

h8io.stages.std.GlobalSoftDeadline
See theGlobalSoftDeadline companion class

Factory for GlobalSoftDeadline stages.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T](now: () => Long, duration: Long): GlobalSoftDeadline[T]

Creates a GlobalSoftDeadline with the given clock and duration in nanoseconds.

Creates a GlobalSoftDeadline with the given clock and duration in nanoseconds.

Type parameters

T

the value type

Value parameters

duration

the time budget in nanoseconds

now

the clock supplier

Attributes

def apply[T](duration: FiniteDuration): Endo[T, Nothing]

Creates a GlobalSoftDeadline with a scala.concurrent.duration.FiniteDuration and System.nanoTime as the clock.

Creates a GlobalSoftDeadline with a scala.concurrent.duration.FiniteDuration and System.nanoTime as the clock.

Type parameters

T

the value type

Value parameters

duration

the time budget

Attributes

def apply[T](duration: Duration): Endo[T, Nothing]

Creates a GlobalSoftDeadline with a java.time.Duration and System.nanoTime as the clock.

Creates a GlobalSoftDeadline with a java.time.Duration and System.nanoTime as the clock.

Type parameters

T

the value type

Value parameters

duration

the time budget

Attributes

def unapply[T](gsd: GlobalSoftDeadline[T]): Some[(() => Long, Long)]

Extracts the clock and duration from a GlobalSoftDeadline instance.

Extracts the clock and duration from a GlobalSoftDeadline instance.

Attributes