Description
It's currently hard to use Fable to write code that uses Task and compile to both Python and JS/TS. Python translates Task to native Task/Future awaitables (async / await) while for TS/JS you need to use JS.Promise.
This makes the code base filled with #if/#else even if you try to rename Promise to Task. Is it time to support Task in Fable for JS/TS that the task CE is native for F#? Ref: dbrattli/Fable.Giraffe#13 (comment)
Description
It's currently hard to use Fable to write code that uses
Taskand compile to both Python and JS/TS. Python translatesTaskto native Task/Future awaitables (async / await) while for TS/JS you need to useJS.Promise.This makes the code base filled with
#if/#elseeven if you try to rename Promise to Task. Is it time to supportTaskin Fable for JS/TS that thetaskCE is native for F#? Ref: dbrattli/Fable.Giraffe#13 (comment)