Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Threading.​Tasks.​Sources.​ManualResetValueTaskSourceCore`1
Assembly: System.Runtime
Provides the core logic for implementing a manual-reset <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource" /> or <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource`1" /> .
Properties
public
bool
RunContinuationsAsynchronously
Gets or sets whether to force continuations to run asynchronously.
public
short
Version
Gets the operation version.
Methods
public
TResult
GetResult​(short token)
token
Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask" /> 's constructor.
Returns The result of the operation.
Gets the result of the operation.
public
ValueTaskSourceStatus
GetStatus​(short token)
token
Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask" /> 's constructor.
Returns A value that indicates the status of the operation.
Gets the status of the operation.
public
void
OnCompleted​(Action`1 continuation,
object state,
short token,
ValueTaskSourceOnCompletedFlags flags)
public
void
Reset​()
Resets to prepare for the next operation.
Completes with an error.
public
bool
Equals​(object obj)
Inherited from ValueType
obj
The object to compare with the current instance.
Returns <see langword="true" /> if <paramref name="obj" /> and this instance are the same type and represent the same value; otherwise, <see langword="false" /> .
Indicates whether this instance and a specified object are equal.
public
int
GetHashCode​()
Inherited from ValueType
Returns A 32-bit signed integer that is the hash code for this instance.
Returns the hash code for this instance.
public
string
ToString​()
Inherited from ValueType
Returns The fully qualified type name.
Returns the fully qualified type name of this instance.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .