Click or drag to resize

SyncContextTaskCompletionSourceTResult Class

Version 85.3.121
TaskCompletionSource that executes it's continuation on the captured SynchronizationContext. If SyncContext is null. then the current **executing** thread will be called. e.g. The thread that called TrySetResult(TResult) (or other Set/Try set methods).
Inheritance Hierarchy
SystemObject
  System.Threading.TasksTaskCompletionSourceTResult
    CefSharp.Internals.TasksSyncContextTaskCompletionSourceTResult

Namespace:  CefSharp.Internals.Tasks
Assembly:  CefSharp (in CefSharp.dll) Version: 85.3.121.0 (85.3.121.0)
Syntax
public class SyncContextTaskCompletionSource<TResult> : TaskCompletionSource<TResult>

Type Parameters

TResult
Result Type

The SyncContextTaskCompletionSourceTResult type exposes the following members.

Constructors
  NameDescription
Public methodSyncContextTaskCompletionSourceTResult
Initializes a new instance of the SyncContextTaskCompletionSourceTResult class
Top
Properties
  NameDescription
Public propertySyncContext
Captured Sync Context
Public propertyTask
Gets the TaskTResult created by this TaskCompletionSourceTResult.
(Inherited from TaskCompletionSourceTResult.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetCanceled
Transitions the underlying TaskTResult into the Canceled state.
(Inherited from TaskCompletionSourceTResult.)
Public methodSetException(Exception)
Transitions the underlying TaskTResult into the Faulted state.
(Inherited from TaskCompletionSourceTResult.)
Public methodSetException(IEnumerableException)
Transitions the underlying TaskTResult into the Faulted state.
(Inherited from TaskCompletionSourceTResult.)
Public methodSetResult
Transitions the underlying TaskTResult into the RanToCompletion state.
(Inherited from TaskCompletionSourceTResult.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrySetCanceled
Attempts to transition the underlying TaskTResult into the Canceled state.
(Inherited from TaskCompletionSourceTResult.)
Public methodTrySetException(Exception)
Attempts to transition the underlying TaskTResult into the Faulted state.
(Inherited from TaskCompletionSourceTResult.)
Public methodTrySetException(IEnumerableException)
Attempts to transition the underlying TaskTResult into the Faulted state.
(Inherited from TaskCompletionSourceTResult.)
Public methodTrySetResult
Attempts to transition the underlying TaskTResult into the RanToCompletion state.
(Inherited from TaskCompletionSourceTResult.)
Top
See Also