C# (CSharp) Lawo.Threading.Tasks AsyncPump - 2 Beispiele gefunden. Dies sind die am besten bewerteten C# (CSharp) Beispiele für die Lawo.Threading.Tasks.AsyncPump, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.
Represents a pump that runs an asynchronous method and all its continuations on the current thread.
Some asynchronous methods expect that all its continuations are executed on the same thread. If such code needs to be run in an environment where this is not guaranteed (SynchronizationContext.Current is either null or is a SynchronizationContext object that schedules continuations on different threads as under ASP.NET) then this class can be used to force execution on a single thread.