WindowsFormsSynchronizationContext execution order of posted callbacks

Viewed 24

I uses WindowsFormsSynchronizationContext to dispatch execution of callbacks in main UI thread (application is WinForms). The dispatching callbacks code runs in worker thread and it should not be synced with callback so I use WindowsFormsSynchronizationContext.Post() method. But callbacks must be executed in main UI thread in order of posting them in WindowsFormsSynchronizationContext.

Does anybody know whether WindowsFormsSynchronizationContext executes posted callbacks in posting order or not? I haven't found this information in the Microsoft Docs.

1 Answers
Related