← index

TimeoutError

inherits Error · defined at core/00-bootstrap.qn:262

Raised by the Async.timeout:ms do:{…} deadline combinator (the bare form, no onCancel:). ms is the elapsed deadline. A direct Error subtype — a timeout can wrap any block, not just I/O (an OS-level socket/read timeout is an IoError with #timedOut).

Instance methods

ms

The deadline that elapsed, in milliseconds.

{ Async.timeout:5 do:{ Async.sleep:50 } }
    .catch:{ |e:TimeoutError| e.ms }    "* -> 5

core/00-bootstrap.qn:269