Represents helper methods for working with linked cancellation tokens.
InheritanceLinkedTokenSourceFactory
Namespace: DotNext.Threading Assembly: DotNext.Threading.dll Syntaxpublic static class LinkedTokenSourceFactory
Methods | Edit this page View Source CausedBy(OperationCanceledException, LinkedCancellationTokenSource?, CancellationToken)
Determines whether the operation was canceled by the specified source.
Declarationpublic static bool CausedBy(this OperationCanceledException e, LinkedCancellationTokenSource? source, CancellationToken token)
Parameters Returns | Edit this page View Source LinkTo(ref CancellationToken, ReadOnlySpan<CancellationToken>)
Links multiple cancellation tokens together.
Declarationpublic static LinkedCancellationTokenSource? LinkTo(this ref CancellationToken first, ReadOnlySpan<CancellationToken> tokens)
Parameters Returns | Edit this page View Source LinkTo(ref CancellationToken, CancellationToken)
Links two cancellation tokens together.
Declarationpublic static LinkedCancellationTokenSource? LinkTo(this ref CancellationToken first, CancellationToken second)
Parameters Returns | Edit this page View Source LinkTo(ref CancellationToken, TimeSpan)
Links cancellation token with the timeout.
Declarationpublic static CancellationTokenSource? LinkTo(this ref CancellationToken token, TimeSpan timeout)
Parameters Type Name Description CancellationToken token
The first cancellation token. Can be modified by this method.
TimeSpan timeoutThe timeout to link.
Returns | Edit this page View Source LinkTo(ref CancellationToken, TimeSpan, CancellationToken)Links two cancellation tokens with the given timeout.
Declarationpublic static CancellationTokenSource? LinkTo(this ref CancellationToken first, TimeSpan timeout, CancellationToken second)
Parameters Returns
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4