txt: ## cancellation.md
  class Cancellation
  
  Removal of a task from a Scheduler before normal completion
  
  ```raku
  my class Cancellation {}
  ```
  
  A low level part of the Raku [concurrency](/language/concurrency#Schedulers) system. Some [`Scheduler`](/type/Scheduler) objects return a `Cancellation` with the [.cue](/type/Scheduler#method_cue) method which can be used to cancel the scheduled execution before normal completion. `Cancellation.cancelled` is a Boolean that is true after `cancel` is called.
  
  # [Methods](#class_Cancellation "go to top of document")[§](#Methods "direct link")
  
  ## [method cancel](#class_Cancellation "go to top of document")[§](#method_cancel "direct link")
  
  ```raku
  method cancel()
  ```
  
  Usage:
  
  ```raku
  Cancellation.cancel
  
  ```
  
  Cancels the scheduled execution of a task before normal completion.
  
  # [Typegraph](# "go to top of document")[§](#typegraphrelations "direct link")
  
  Type relations for `Cancellation`
  
  
  
  raku-type-graph
  
  
  
  Cancellation
  Cancellation
  
  
  Any
  Any
  
  
  Cancellation->Any
  
  
  
  Mu
  Mu
  
  
  Any->Mu
  
  [Expand chart above](/assets/typegraphs/Cancellation.svg)
  