C# Class CqlSharp.Threading.AutoConfiguredAwaitable

Awaitable that automatically determines how continuations need to be registered
显示文件 Open project: reuzel/CqlSharp

Public Methods

Method Description
AutoConfiguredAwaitable ( System.Threading.Tasks.Task task ) : System

Initializes a new instance of the AutoConfiguredAwaitable struct.

GetAwaiter ( ) : AutoConfiguredAwaiter

Private Methods

Method Description
NeedToConfigure ( ) : bool

Checks if there is a need to continue on the current context

OnCompleted ( System.Threading.Tasks.Task task, System.Action continuation ) : void

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

UnsafeOnCompleted ( System.Threading.Tasks.Task task, System.Action continuation ) : void

Method Details

AutoConfiguredAwaitable() public method

Initializes a new instance of the AutoConfiguredAwaitable struct.
task
public AutoConfiguredAwaitable ( System.Threading.Tasks.Task task ) : System
task System.Threading.Tasks.Task The task being awaited
return System

GetAwaiter() public method

public GetAwaiter ( ) : AutoConfiguredAwaiter
return AutoConfiguredAwaiter