Mention TaskToAsyncResult in "Implement the APM pattern by using tasks"
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
### Type of issue
Missing information
### Description
In the "Implement the APM pattern by using tasks" section of the "TPL and traditional .NET asynchronous programming" topic, it would be useful to mention the [System.Threading.Tasks.TaskToAsyncResult](https://learn.microsoft.com/dotnet/api/system.threading.tasks.tasktoasyncresult?view=net-8.0) class, and explain how its behaviour differs from the `Task.Factory.StartNew` example.
TaskToAsyncResult is available starting from .NET 8.0. The idea of publishing it for downlevel frameworks too was mentioned in but AFAIK it has not been done.
### Page URL
https://learn.microsoft.com/en-gb/dotnet/standard/parallel-programming/tpl-and-traditional-async-programming
### Content source URL
https://github.com/dotnet/docs/blob/main/docs/standard/parallel-programming/tpl-and-traditional-async-programming.md
### Document Version Independent Id
b7239ee4-3f1b-45da-b671-737fce0536c0
### Platform Id
1a06847a-1003-9404-b237-1562858256c5
### Article author
@adegeo
### Metadata
* ID: fcee7199-2d8d-efe7-d5d0-5599f4f0019d
* PlatformId: 1a06847a-1003-9404-b237-1562858256c5
* Service: **dotnet-fundamentals**
[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+b7239ee4-3f1b-45da-b671-737fce0536c0)
Contributor guide
Assessment
This issue has not been assessed yet.