Skip to content

[RuntimeAsync] Implement struct async thunks. #3011

@VSadov

Description

@VSadov

Re: https://github.com/dotnet/runtimelab/pull/2951/files#r1960790542

There is an assert:

       // Struct async thunks not yet implemented
       _ASSERTE(!this->GetMethodTable()->IsValueType());

It can be hit by Async2Struct testcase by changing the void Async() entry point to be an ordinary async method.

      private static async Task Async()    // not async2

Some of the scenarios in the test may become irrelevant since it will be C# responsibility to capture by value.

However the general case of an async struct method still needs to be handled, so this needs a follow up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions