Table of Contents

Class CancellationTokenExtensions

Namespace
VpnHood.AppLib.Stores.GooglePlay
Assembly
VpnHood.AppLib.Stores.GooglePlay.Core.dll

Provides the conversion of a cancellation token to Android's cancellation signal.

public static class CancellationTokenExtensions
Inheritance
CancellationTokenExtensions
Inherited Members

Methods

ToCancellationSignal(CancellationToken)

Creates an Android cancellation signal that is canceled with the token.

public static CancellationSignal ToCancellationSignal(this CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The token.

Returns

CancellationSignal

The signal, canceled already where the token is.

Remarks

The caller must not dispose the signal: the token's cancel cancels it, and an early disposal can crash the process.