dotnet / dotnet/docs

UntilCompletionOrCancellation return error

Open
#40,862 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Describe the issue or suggestion

https://learn.microsoft.com/en-us/dotnet/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern#early-bailout****

The return throws error as the return type is not `Task`.
Function `UntilCompletionOrCancellation` doesn't need return.
Please correct me if i'm wrong.

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: cabcc3ba-9033-c65f-8969-482a436d510b
* Version Independent ID: a74714e2-d059-e33f-a8c6-591d988ef2a4
* Content: [Consuming the Task-based Asynchronous Pattern - .NET](https://learn.microsoft.com/en-us/dotnet/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern#early-bailout)
* Content Source: [docs/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern.md](https://github.com/dotnet/docs/blob/main/docs/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern.md)
* Service: **dotnet-fundamentals**
* GitHub Login: @BillWagner
* Microsoft Alias: **wiwagn**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.