Replies: 1 comment
-
Personally, I always use I don't think there much of performance penalty for using
So it means that we could write use task to write cross platform code, but they would be native to the runtime as in JavaScript we would just translate them to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm curious when one should write code targeting async vs JS.Promise. Is it generally advised when writing fable to stick with async and only use Promises at the "borders" when interacting with js-specific libraries, making more of the code usable cross-platform? And is there a performance difference there, or is the async implementation pretty low overhead compared to using promises directly?
Also, on the backend, when using a library like oxpecker, task seems to be preferred in the examples, but I'm not sure of the state of task support in fable as well.
Is there a general recommendation that has good balance of maintenance and performance?
Beta Was this translation helpful? Give feedback.
All reactions