BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2024-07-13

class Cancellation

Removal of a task from a Scheduler before normal completion

my class Cancellation {}
Code

A low level part of the Raku concurrency system. Some Scheduler objects return a Cancellation with the .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§

method cancel§

method cancel()
Code

Usage:

Cancellation.cancel
Code

Cancels the scheduled execution of a task before normal completion.

Class relation diagram§

Rakudo Type Relation for Cancellation Cancellation Cancellation Any Any Cancellation->Any is