I'm curious if the work submitted by CoreDispatcher::RunAsync
is running in FIFO order. It seems I can't find the document about this. Can someone clarify this for me ? Many thanks!
I'm curious if the work submitted by CoreDispatcher::RunAsync is running in FIFO order.
It seems that the documentation does not specify that CoreDispatcher::RunAsync runs in FIFO order. But we can find ProcessEvents
method explanation. Starts the dispatcher processing the input event queue for this instance of CoreWindow.
And the queue represents a first-in, first-out collection of objects. So we can regard CoreDispatcher::RunAsync
as running in FIFO order.
Update1
as @IInspectable comments below, CoreDispatcher::RunAsync
contains a CoreDispatcherPriority
argument. And we often use Normal
priority that delegates are processed in the order they are scheduled.