A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.completedtask below:

Task.CompletedTask Property (System.Threading.Tasks) | Microsoft Learn

Task.CompletedTask Property Definition

Gets a task that has already completed successfully.

public:
 static property System::Threading::Tasks::Task ^ CompletedTask { System::Threading::Tasks::Task ^ get(); };
public static System.Threading.Tasks.Task CompletedTask { get; }
static member CompletedTask : System.Threading.Tasks.Task
Public Shared ReadOnly Property CompletedTask As Task
Property Value

The successfully completed task.

Remarks

This property returns a task whose Status property is set to RanToCompletion. To create a task that returns a value and runs to completion, call the FromResult method.

Repeated attempts to retrieve this property value may not always return the same instance.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4