gleamunison/cancellation

A single-use cancellation flag shared by caller and transport. No server, registry, or background job is needed to cancel an outstanding request.

Types

Holds the Erlang atomics reference. The constructor is used here, so the type is a real value the FFI returns into rather than a name it pretends to produce; the reference never escapes the module.

pub opaque type Token

Values

pub fn cancel(token: Token) -> Nil
pub fn is_cancelled(token: Token) -> Bool
pub fn new() -> Token
✨ Search Document