NanoByte.Common  2.6.1
NanoByte.Common.Tasks.CancellationTokenRegistration Struct Reference

Represents a callback delegate that has been registered with a CancellationToken. More...

Inheritance diagram for NanoByte.Common.Tasks.CancellationTokenRegistration:

Public Member Functions

void Dispose ()
 Unregisters the callback. More...
 

Package Functions

 CancellationTokenRegistration (CancellationTokenSource? source, Action callback)
 

Detailed Description

Represents a callback delegate that has been registered with a CancellationToken.

Unlike the built-in CancellationToken type of .NET the NanoByte.Common variant supports remoting.

Member Function Documentation

◆ Dispose()

void NanoByte.Common.Tasks.CancellationTokenRegistration.Dispose ( )
inline

Unregisters the callback.


The documentation for this struct was generated from the following file: