Click or drag to resize

SyncContextTaskCompletionSourceTResult Class

Version 130.1.90
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: 129.0.110.0 (129.0.110.0)
Syntax
public class SyncContextTaskCompletionSource<TResult> : TaskCompletionSource<TResult>

Type Parameters

TResult
Result Type

The SyncContextTaskCompletionSourceTResult type exposes the following members.

Constructors
 NameDescription
Public methodSyncContextTaskCompletionSourceTResultInitializes a new instance of the SyncContextTaskCompletionSourceTResult class
Top
Properties
 NameDescription
Public propertySyncContext Captured Sync Context
Public propertyTaskGets the TaskTResult created by this TaskCompletionSourceTResult.
(Inherited from TaskCompletionSourceTResult)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetCanceledTransitions the underlying TaskTResult into the Canceled state.
(Inherited from TaskCompletionSourceTResult)
Public methodSetException(Exception)Transitions the underlying TaskTResult into the Faulted state and binds it to a specified exception.
(Inherited from TaskCompletionSourceTResult)
Public methodSetException(IEnumerableException)Transitions the underlying TaskTResult into the Faulted state and binds a collection of exception objects to it.
(Inherited from TaskCompletionSourceTResult)
Public methodSetResultTransitions the underlying TaskTResult into the RanToCompletion state.
(Inherited from TaskCompletionSourceTResult)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTrySetCanceledAttempts to transition the underlying TaskTResult into the Canceled state.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetCanceled(CancellationToken)Attempts to transition the underlying TaskTResult into the Canceled state and enables a cancellation token to be stored in the canceled task.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetException(Exception)Attempts to transition the underlying TaskTResult into the Faulted state and binds it to a specified exception.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetException(IEnumerableException)Attempts to transition the underlying TaskTResult into the Faulted state and binds a collection of exception objects to it.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetResultAttempts to transition the underlying TaskTResult into the RanToCompletion state.
(Inherited from TaskCompletionSourceTResult)
Top
See Also