MessageQueueTerminateAndWait Method |
Terminates the message queue and waits for termination to complete. Any messages that are already
in the queue when this method is called will be processed before the queue is terminated. Unlike
Terminate, this method does not return until the message queue is terminated.
This method must not be called from the thread that is running the message queue. Doing so will
cause a dead-lock because this method cannot return until the message queue terminates and the
queue cannot terminate until this method returns.
Namespace:
AGI.Foundation.Infrastructure.Threading
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 23.2.417.0 (23.2.417.0)
Syntaxpublic void TerminateAndWait()
Public Sub TerminateAndWait
public:
void TerminateAndWait()
member TerminateAndWait : unit -> unit
See Also