Method
Register
func Register(callback: () -> ()) -> CancellationRegistration
Declaring type: CancellationToken
Module: System.Concurrency
Assembly: System.Runtime.dll
Source file: Cancellation.rvn
Registers an invocation-local callback; an already requested token invokes it inline.
Parameters
| Name | Type | Description |
|---|---|---|
callback |
Function |