Click or drag to resize

SynchronizedTaskT Class

Represents a task that cannot run while it is already in progress.
Inheritance Hierarchy
SystemObject
  GSF.Core.ThreadingSynchronizedTaskT

Namespace: GSF.Core.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.300-beta+b2186e2cd1f968c931b0e151fdd7c839f3d1e9cf
Syntax
public class SynchronizedTask<T>
View Source

Type Parameters

T
The type of object returned by the task when it executes.

The SynchronizedTaskT type exposes the following members.

Constructors
 NameDescription
Public methodSynchronizedTaskT Creates a new instance of the SynchronizedTaskT class.
Top
Properties
 NameDescription
Public propertyIsPending Gets a value to indiate whether the synchronized task has an additional callback that is pending execution after the currently running task has completed.
Public propertyIsRunning Gets a value to indicate whether the synchronized task is currently executing its callback.
Top
Methods
 NameDescription
Public methodConfigureAwait Configures an awaiter used to await the most recently completed callback.
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 methodFlushAsync Returns a task that completes when the currently running and pending tasks are both complete.
Public methodGetAwaiter Returns an awaiter used to await the most recently completed callback.
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 methodRunAsync Executes the callback on another thread or marks the task as pending if the callback is already running.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also