Lyricdev
GitHub

class Cancelled

pub class Cancelled :: [Error]

Conforms to Error.

The error a wait throws in a cancelled task, and a suspended yield when close() unwinds its coroutine.

It is an Error, so cleanup can catch it — though a coroutine that catches it may not yield again, and a task that waits again gets it again.

Methods

pub fn message(): string