lev.cancel_token

lev

cancel_token() -> token

Create a cancellation token

Returns a cancel token that can be passed to sleep(), connect(), accept(), and other blocking operations to enable cooperative cancellation. Call token:cancel() to interrupt all registered waiters.