C# Class Helios.Concurrency.ScheduledTask

Inheritance: IScheduledRunnable
显示文件 Open project: helios-io/helios

Protected Properties

Property Type Description
Executor AbstractScheduledEventExecutor
Promise TaskCompletionSource

Public Methods

Method Description
Cancel ( ) : bool
CompareTo ( IScheduledRunnable other ) : int
GetAwaiter ( ) : TaskAwaiter
Run ( ) : void

Protected Methods

Method Description
Execute ( ) : void
ScheduledTask ( AbstractScheduledEventExecutor executor, PreciseDeadline deadline, TaskCompletionSource promise ) : System

Private Methods

Method Description
AtomicCancellationStateUpdate ( int newBits, int illegalBits ) : bool
TrySetUncancelable ( ) : bool

Method Details

Cancel() public method

public Cancel ( ) : bool
return bool

CompareTo() public method

public CompareTo ( IScheduledRunnable other ) : int
other IScheduledRunnable
return int

Execute() protected abstract method

protected abstract Execute ( ) : void
return void

GetAwaiter() public method

public GetAwaiter ( ) : TaskAwaiter
return TaskAwaiter

Run() public method

public Run ( ) : void
return void

ScheduledTask() protected method

protected ScheduledTask ( AbstractScheduledEventExecutor executor, PreciseDeadline deadline, TaskCompletionSource promise ) : System
executor AbstractScheduledEventExecutor
deadline PreciseDeadline
promise TaskCompletionSource
return System

Property Details

Executor protected_oe property

protected AbstractScheduledEventExecutor Executor
return AbstractScheduledEventExecutor

Promise protected_oe property

protected TaskCompletionSource Promise
return TaskCompletionSource