MBrace.Runtime


ThreadPoolCancellationTokenSource

Namespace: MBrace.ThreadPool

Cloud cancellation token source implementation that wraps around System.Threading.CancellationTokenSource

Constructors

ConstructorDescription
new()
Signature: unit -> ThreadPoolCancellationTokenSource

CompiledName: .ctor

new(cts)
Signature: cts:CancellationTokenSource -> ThreadPoolCancellationTokenSource

CompiledName: .ctor

Instance members

Instance memberDescription
Cancel()
Signature: unit -> unit

Trigger cancelation for the cts

LocalCancellationTokenSource
Signature: CancellationTokenSource

Local System.Threading.CancellationTokenSource instance

CompiledName: get_LocalCancellationTokenSource

Token
Signature: ThreadPoolCancellationToken

InMemoryCancellationToken instance

CompiledName: get_Token

Static members

Static memberDescription
CreateCancellationTokenSource(parents)
Signature: (parents:ICloudCancellationToken []) -> ThreadPoolCancellationTokenSource

Creates a local linked cancellation token source from provided parent tokens

Fork me on GitHub