Skip to content

Remarks section contradicts what the Returns specifies #10771

Open
@andreikarkkanen

Description

@andreikarkkanen

Type of issue

Other (describe below)

Description

  1. InvokeAsync<T>(Func<CancellationToken,ValueTask<T>>, CancellationToken)
    Returns
    Task<T>
    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<T>(Func<T>, CancellationToken)
    Returns
    Task<T>
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-WinFormsIssues or PRs that relate to WinForms.untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions