Closed
Description
Description
Spawning any long-running Task or Thread from the main thread for longer than 5000 ms kills application and runtime when using Blazor.
Reproduction Steps
- Create empty Blazor app and use current
main
build of runtime in project file - Use Task.Run, Thread.Start or async/await anywhere in the app with a long-running task (importantly, NOT Task.Yield or Task.Delay)
- Observe the error and runtime crash.
Expected behavior
I should be able to start a task from anywhere on the main thread using Task.Run in a Blazor app and not have the runtime crash after 5000ms
Actual behavior
Runtime crashes with error (screenshot above)
Regression?
This previously worked perfectly on the official release build of .NET 8 Preview 4.
Known Workarounds
None
Configuration
No response
Other information
No response