CancellableTrait
This trait provides a basic boolean-setter-style implementation for `Cancellable` to reduce boilerplate.
The precise meaning of setCancelled
is subject to definition by the class using this trait.
Implementors of Cancellable
are not required to use this trait.
Tags
Table of Contents
- $isCancelled : bool
- cancel() : void
- isCancelled() : bool
- uncancel() : void
Properties
$isCancelled
private
bool
$isCancelled
= false
Methods
cancel()
public
cancel() : void
Return values
void —isCancelled()
public
isCancelled() : bool
Return values
bool —uncancel()
public
uncancel() : void