Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
protected virtual bool MustYield( int count )
- Type: System.Int32
Number of messages already processed by the current invocation of the ProcessQueue() method.
Return ValueType: Boolean
true if the ProcessQueue() method should stop processing messages, false if it should continue.
The purpose of this method is to allow custom implementations of the ActorDispatcher class, which may dispatch the message queue execution on a pool composed of a small numbers of threads, to prevent a few actors to consume all available threads.