data-timeout-0.2: 64-bit timeouts of nanosecond precision

Data.Timeout

Synopsis

Documentation

data TimedOut Source

Exception that is raised when an operation times out. Not used by the package itself, it is here so that users don't need to roll their own exception type every time.

Constructors

TimedOut 

timeoutUnitNanos :: TimeoutUnit -> Word64Source

Amount of nanoseconds in a timeout unit.

(#) :: Word64 -> TimeoutUnit -> TimeoutSource

Convert the given number of timeout units to Timeout.

(#>) :: Timeout -> TimeoutUnit -> Word64Source

Extract number of units (rounding up).

(#<) :: Timeout -> TimeoutUnit -> Word64Source

Extract number of units (rounding down).

instantly :: TimeoutSource

Zero timeout. The event in question should occur immediately.