Skip to content

[RuntimeAsync] Enable async feature/tests - #119420

Closed
VSadov wants to merge 0 commit into
dotnet:mainfrom
VSadov:asyncTest
Closed

VSadov wants to merge 0 commit into
dotnet:mainfrom
VSadov:asyncTest

Conversation

@VSadov

@VSadov VSadov commented Sep 6, 2025 •

Copy link
Copy Markdown
Member

Mostly to check the current state of build/tests, although maybe we could merge this ? . . .
(perhaps not yet, while there is still some backporting to v10)

@github-actions github-actions Bot added the area-Infrastructure-coreclr Only use for closed issues label Sep 6, 2025
@VSadov VSadov added area-VM-coreclr and removed area-Infrastructure-coreclr Only use for closed issues labels Sep 6, 2025
@VSadov VSadov changed the title Enable async feature/tests [RuntimeAsync] Enable async feature/tests Sep 6, 2025
<PropertyGroup>
<RunAnalyzers>true</RunAnalyzers>
<NoWarn>$(NoWarn);xUnit1013;CS1998</NoWarn>
<NoWarn>$(NoWarn);xUnit1013;CS1998;SYSLIB5007</NoWarn>

@VSadov VSadov Sep 16, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tommcdon The SYSLIB5007nowarn is to suppress warnings about using experimental API. CompilerServices/AsyncHelpers where the Await helpers live is still marked as experimental.
It will not be experimental in at some point, hopefully soon.

@VSadov VSadov Sep 16, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also note the <Features>$(Features);runtime-async=on</Features> below - that enables the new style codegen for async/await on the Roslyn side.

Right now we enable this only for tests under tests/async, if we build that at all.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nowarn for SYSLIB5007 should no longer be needed

Comment thread src/tests/async/struct/struct.cs Outdated
}

// Roslyn NYI - async in structs. Remove opt-out once supported.
[System.Runtime.CompilerServices.RuntimeAsyncMethodGeneration(false)]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer needed either.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NYI has been implemented.

@VSadov
VSadov force-pushed the asyncTest branch 3 times, most recently from 2cf4728 to 4da8472 Compare November 13, 2025 21:16
@VSadov VSadov closed this Dec 17, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant