Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
document Cancellation #589
- Loading branch information
1 parent
ff74bc4
commit 08c8bb6
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| =begin pod | ||
| =TITLE class Cancellation | ||
| =SUBTITLE Removal of a task from a Scheduler before normal completion | ||
| my class Cancellation { ... } | ||
| A low level part of the Perl 6 L<concurrency|/language/concurrency#Schedulers> | ||
| system. Some L<Scheduler> objects return a C<Cancellation> with the | ||
| L<.cue|/type/Scheduler#method_cue> method which can be used to cancel the | ||
| scheduled execution before normal completion. C<Cancellation.cancelled> is a | ||
| boolean that is true after L<#cancel> is called. | ||
| =head1 Methods | ||
| =head2 method cancel | ||
| Defined as: | ||
| method cancel() | ||
| Usage: | ||
| CANCELLATION.cancel | ||
| Cancels the scheduled execution of a task before normal completion. | ||
| =end pod | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 |