C# Class Squared.Task.CancellationScope

Show file Open project: sq/Fracture Class Usage Examples

Public Properties

Property Type Description
Description string
FilePath string
Id int
LineNumber int
Null CancellationScope

Public Methods

Method Description
CancellationScope ( [ description = null, [ filePath = null, [ lineNumber ) : System
GetAwaiter ( ) : CancellationScopeAwaiter
Push ( ) : CancellationScope
Reserve ( ) : Future
Set ( System.Threading.Tasks.Task task, CancellationScope scope ) : void
ThrowIfCanceled ( ) : void
ToString ( ) : string
TryCancel ( ) : bool
TryGet ( System.Threading.Tasks.Task task, CancellationScope &result ) : bool

Private Methods

Method Description
AddChild ( CancellationScope child ) : void

Method Details

CancellationScope() public method

public CancellationScope ( [ description = null, [ filePath = null, [ lineNumber ) : System
description [
filePath [
lineNumber [
return System

GetAwaiter() public method

public GetAwaiter ( ) : CancellationScopeAwaiter
return CancellationScopeAwaiter

Push() public method

public Push ( ) : CancellationScope
return CancellationScope

Reserve() public static method

public static Reserve ( ) : Future
return Future

Set() public static method

public static Set ( System.Threading.Tasks.Task task, CancellationScope scope ) : void
task System.Threading.Tasks.Task
scope CancellationScope
return void

ThrowIfCanceled() public method

public ThrowIfCanceled ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

TryCancel() public method

public TryCancel ( ) : bool
return bool

TryGet() public static method

public static TryGet ( System.Threading.Tasks.Task task, CancellationScope &result ) : bool
task System.Threading.Tasks.Task
result CancellationScope
return bool

Property Details

Description public property

public string Description
return string

FilePath public property

public string FilePath
return string

Id public property

public int Id
return int

LineNumber public property

public int LineNumber
return int

Null public static property

public static CancellationScope,Squared.Task Null
return CancellationScope