MBrace.Runtime


CloudCancellationToken

Namespace: MBrace.Runtime

Distributed ICloudCancellationToken[Source] implementation

Instance members

Instance memberDescription
Cancel()
Signature: unit -> unit

Cancel cancellation token

CancellationEntry
Signature: ICancellationEntry option

Gets the corresponding cancellation entry, if applicable

CompiledName: get_CancellationEntry

ElevateToGlobal()
Signature: unit -> bool

Elevates cancellation token to global scope. Returns true if succesful, false if already canceled.

GlobalId
Signature: string option

Elevated cancellation token id

CompiledName: get_GlobalId

IsCancellationRequested
Signature: bool

CompiledName: get_IsCancellationRequested

LocalToken
Signature: CancellationToken

System.Threading.Token for distributed cancellation token

CompiledName: get_LocalToken

Static members

Static memberDescription
Canceled
Signature: CloudCancellationToken

Creates a CancellationEntry that has been canceled.

CompiledName: get_Canceled

Create(source, parents, elevate)
Signature: (source:ICancellationEntryFactory * parents:ICloudCancellationToken [] option * elevate:bool option) -> Async<CloudCancellationToken>

Creates a distributed cancellation token source with lazy elevation to distributed cancellation semantics.

FromEntry(entry)
Signature: entry:ICancellationEntry -> CloudCancellationToken

Wraps a CancellationEntry instance into a new CloudCancellationToken

Fork me on GitHub