F# with Fable provides two computation expressions for working with callback based code: async and promise.
async is more idomatic F#, but it is not clear to me how well it will work in the browser. Ideally I would be able to use async everywhere, since this gives me greater code reuse across client & server.
- What are the limitations of
asyncin the browser? - What are the limitations of
promiseon the server (e.g. dotnet core) - Can I easily switch between the two? (e.g. to wrap
fetchAPI) - What is idomatic for Fable?
Note: I do not need to interop with any JavaScript, aside from the browser API.