dotnet / dotnet/dotnet-api-docs

Remarks section contradicts what the Returns specifies

Open
#10,771 1 comment 0 reactions 0 assignees View on GitHub
area-WinForms Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Other (describe below)

### Description

1. `InvokeAsync(Func>, CancellationToken)`
**Returns**
`Task`
A task representing the operation and containing the function's result of type T.
**Remarks**
Also note that the returned task is not the task associated with the callback, but a task representing the operation of marshalling the callback to the UI thread.
2. `InvokeAsync(Func, CancellationToken)`
**Returns**
`Task`
A task representing the operation and containing the function's result.
**Remarks**
InvokeAsync in this case is just queuing the callback to the end of the message queue and returns immediately ...

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.invokeasync?view=windowsdesktop-9.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Windows.Forms/Control.xml

### Document Version Independent Id

2850640d-5d07-fa58-bf8c-2db9f390cdc1

### Article author

@dotnet-bot

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.