OxL Справочник OxL
РусскийEnglish

data Cancelled

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

Example:

oxl✓ проверяется в CI
fn main() io {
  let e: NetError = Cancelled{}
  match e {
    Cancelled _ => print("cancelled")
    _ => print("other")
  }
}
Вывод
cancelled
@error pub(api) data Cancelled

С версии. 1.0.0-beta

Определено в: std/core/types.oxl:1329

См. также