Async.SwitchSynchronizationContext allows an Async
action to switch to running within a given SynchronizationContext
. I would like to synchronously begin an Async
computation within a SynchronizationContext
, rather than switching inside the Async
.
This would ensure that Async
actions are run in the desired order, and that they are not run concurrently.
Is this possible? The documentation for Async.SwitchSynchronizationContext
mentions using SynchronizationContext.Post
, but no such functionality is exposed for Async
.