TCancellationTokenSource.CreateLinked Method
Creates a source that is canceled as soon as any of ATokens is, in addition to its own Cancel and CancelAfter.
Remarks
The typical use combines an outer request with a local limit: a job that must stop when the host stops, or after two minutes, whichever comes first. If one of ATokens is already canceled, the new source is created canceled. Nil tokens are ignored.
Syntax
Unit: Bcl.Cancellation
class function TCancellationTokenSource.CreateLinked(const ATokens: ): ICancellationTokenSource; static;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | ATokens |