A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://dotnet.github.io/dotNext/api/DotNext.Threading.LinkedTokenSourceFactory.html below:

Class LinkedTokenSourceFactory | .NEXT

Class LinkedTokenSourceFactory

Represents helper methods for working with linked cancellation tokens.

Inheritance

LinkedTokenSourceFactory

Namespace: DotNext.Threading Assembly: DotNext.Threading.dll Syntax
public static class LinkedTokenSourceFactory
Methods | Edit this page View Source CausedBy(OperationCanceledException, LinkedCancellationTokenSource?, CancellationToken)

Determines whether the operation was canceled by the specified source.

Declaration
public 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.

Declaration
public 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.

Declaration
public 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.

Declaration
public 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 timeout

The timeout to link.

Returns | Edit this page View Source LinkTo(ref CancellationToken, TimeSpan, CancellationToken)

Links two cancellation tokens with the given timeout.

Declaration
public 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