Table of contents
TOC
Collapse the table of content
Expand the table of content

Threading.CancellationTokenSource Class (F#)

Den Delimarsky|Last Updated: 8/18/2017
|
1 Contributor

Signals to a CancellationToken that it should be cancelled.

Namespace/Module Path: System.Threading

Assembly: FSharp.Core (in FSharp.Core.dll)

Syntax

[<Sealed>]
[<AllowNullLiteral>]
type CancellationTokenSource =
class
interface IDisposable
new CancellationTokenSource : unit -> CancellationTokenSource
member this.Cancel : unit -> unit
static member CreateLinkedTokenSource : CancellationToken * CancellationToken -> CancellationTokenSource
member this.Dispose : unit -> unit
member this.Token :  CancellationToken
end

Remarks

This type is provided for use only with the F# Core Library Versions that targets .NET Framework 2.0. If you are using .NET Framework 4, use the .NET Framework 4 type with the same name, System.Threading.CancellationTokenSource.

Constructors

MemberDescription
newCreates a new cancellation capability.

Instance Members

MemberDescription
CancelCancels the operation.
DisposeDiscards resources associated with this capability.
TokenFetches the token representing the capability to detect cancellation of an operation.

Static Members

MemberDescription
CreateLinkedTokenSourceCreates a cancellation capability linking two tokens.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0

See Also

System.Threading Namespace (F#)

© 2019 Microsoft