Timeout

A type for specifying absolute timeouts

Constructors

this
this(TscTimePoint expiry)

Construct a timeout from TscTimePoint

this
this(Duration dur, TscTimePoint now)

Construct a timeout from Duration

Members

Functions

opCmp
int opCmp(Timeout rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Timeout rhs)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

expired
TscTimePoint expired [@property setter]

Checks whether a Timeout has expired.

remaining
TscTimePoint remaining [@property setter]

Report how much time until the timeout expires

Variables

elapsed
enum Timeout elapsed;

Constant specifying an already elapsed timeout

expiry
TscTimePoint expiry;

The expected expiry time

infinite
enum Timeout infinite;

Constant specifying a timeout that will never elapse

Meta