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.​IValueTaskSource`1

Assembly: System.Runtime

Represents an object that can be wrapped by a <see cref="T:System.Threading.Tasks.ValueTask`1" /> .

Methods

public TResult
GetResult​(short token)
token An opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask" /> constructor.
Returns The result of the <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource`1" /> .
Gets the result of the <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource`1" /> .
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 current operation.
Gets the status of the current operation.
public void
OnCompleted​(Action`1 continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)