Op Englesch liesen Editéieren

Deelen iwwer


AsyncSerialExecutor Class

Definition

A utility class that provides serial execution of async functions. In can be used inside reentrant grain code to execute some methods in a non-reentrant (serial) way.

C#
public class AsyncSerialExecutor
Inheritance
AsyncSerialExecutor

Constructors

Methods

AddNext(Func<Task>)

Submits the next function for execution. It will execute after all previously submitted functions have finished, without interleaving their executions. Returns a promise that represents the execution of this given function. The returned promise will be resolved when the given function is done executing.

Applies to

Produkt Versiounen
.NET Orleans 1.5.10, 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0