C# Class UnifiedStorage.Extensions.AwaitExtensions.TaskSchedulerAwaiter

An awaitable task scheduler.
Exibir arquivo Open project: fiveninedigital/UnifiedStorage

Public Methods

Method Description
GetAwaiter ( ) : TaskSchedulerAwaiter

Gets the awaiter.

GetResult ( ) : void

Gets the result.

OnCompleted ( System.Action continuation ) : void

Schedules the continuation action that's invoked when the instance completes.

Private Methods

Method Description
TaskSchedulerAwaiter ( TaskScheduler taskScheduler, CancellationToken cancellationToken ) : System

Initializes a new instance of the TaskSchedulerAwaiter structure.

Method Details

GetAwaiter() public method

Gets the awaiter.
public GetAwaiter ( ) : TaskSchedulerAwaiter
return TaskSchedulerAwaiter

GetResult() public method

Gets the result.
public GetResult ( ) : void
return void

OnCompleted() public method

Schedules the continuation action that's invoked when the instance completes.
IsCompleted is true, so this is unexpected.
public OnCompleted ( System.Action continuation ) : void
continuation System.Action The action to invoke when the operation completes.
return void