ValueTask Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ValueTask(Task) |
Initializes a new instance of the ValueTask class using the supplied task that represents the operation. |
ValueTask(IValueTaskSource, Int16) |
Initializes a new instance of the ValueTask class using the supplied IValueTaskSource object that represents the operation. |
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
Initializes a new instance of the ValueTask class using the supplied task that represents the operation.
public:
ValueTask(System::Threading::Tasks::Task ^ task);
public ValueTask(System.Threading.Tasks.Task task);
new System.Threading.Tasks.ValueTask : System.Threading.Tasks.Task -> System.Threading.Tasks.ValueTask
Public Sub New (task As Task)
Parameters
- task
- Task
The task that represents the operation.
Applies to
.NET 10 und andere Versionen
Produkt | Versionen |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.0 (package-provided), 2.1 |
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
- Source:
- ValueTask.cs
Initializes a new instance of the ValueTask class using the supplied IValueTaskSource object that represents the operation.
public:
ValueTask(System::Threading::Tasks::Sources::IValueTaskSource ^ source, short token);
public ValueTask(System.Threading.Tasks.Sources.IValueTaskSource source, short token);
new System.Threading.Tasks.ValueTask : System.Threading.Tasks.Sources.IValueTaskSource * int16 -> System.Threading.Tasks.ValueTask
Public Sub New (source As IValueTaskSource, token As Short)
Parameters
- source
- IValueTaskSource
An object that represents the operation.
- token
- Int16
An opaque value that is passed through to the IValueTaskSource.
Applies to
.NET 10 und andere Versionen
Produkt | Versionen |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.0 (package-provided), 2.1 |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: