OxL Reference

data Cancelled

The call was cancelled (the caller's task was cancelled or its deadline passed). One of the alternatives of NetError.

Example:

oxl✓ checked in CI
fn main() io {
  let e: NetError = Cancelled{}
  match e {
    Cancelled _ => print("cancelled")
    _ => print("other")
  }
}
Output
cancelled
@error pub(api) data Cancelled

Since. 1.0.0-beta

Defined in: std/core/types.oxl:1329

See also