Module Cancellation.Source

type t

t is the type of cancellation token source that can be used to cause an associated token to become canceled.

val cancel : t @ local -> unit

cancel t makes any tokens associated with t canceled. It will signal the triggers for any linked tokens.