I use a library written in C # and use the async / await pattern. In C #, I can wait for something by calling it ConfigureAwait(false), but when I use the library from F #, I see no way to do the same?
I am currently doing SomeMethodAsync() |> Async.AwaitTaskto convert it to an AsyncF # workflow , but how can I do the same as ConfigureAwait(false)from F # as well as when called SomeMethodAsync?
EDIT:
With some help on the F # Slack channel and some additional search robot, I found a good explanation of how to switch the context here: http://tomasp.net/blog/async-non-blocking-gui.aspx/
source
share