PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ThreadingActor­DispatcherMust­Yield
Open sandboxFocus

ActorDispatcher.MustYield Method

MustYield(Int32)

Determines whether the ProcessQueue() method should interrupt the processing of the message queue before the queue is empty.

Declaration
protected virtual bool MustYield(int count)
Parameters
Type Name Description
System.Int32 count

Number of messages already processed by the current invocation of the ProcessQueue() method.

Returns
Type Description
System.Boolean

true if the ProcessQueue() method should stop processing messages, false if it should continue.