January 2017
Intermediate to advanced
338 pages
7h 51m
English
We may have been tempted to use a MailboxProcessor instantiation wrapped within an asynchronous workflow. It is not recommended to have this overly complex wrapper as MailboxProcessor already has its own asynchronous context.
This is also applied to interoperability with the UI thread as well as asynchronous context should not be mixed with the UI thread directly. Mixing the UI thread with asynchronous contexts will yield unpredictable results.
If we must use Windows forms, it is best to have asynchronous workflow and the UI coded in F#. Using WPF, we can use WPF Dispatcher to ensure we will not have cross-thread violation.
On managing side effects, using MailboxProcessor to ...
Read now
Unlock full access