DEV Community

Discussion on: C# Pause a Thread - Wait For An Event To Happen - Continue Thread

Collapse
 
expecho profile image
Peter Bons

Ah great advice there.

Thread Thread
 
andrekfm profile image
AndreKfm

Just stumbled about,

If I interpret it correctly, starting a task with LongRunning flag will just do the same, create a new thread.
May be this is different in .NET Core - but will be then also apply to .NET 5.0
Link to the source code below.

BR Andre

github.com/dotnet/runtime/blob/851...