Converts the Future to a JavaScript Promise.
Converts the Future to a JavaScript Promise.
Attention! The nature of the Promise class, from the ECMAScript specification, makes this method inherently un-typeable, because it is not type parametric.
The signature of the toJSPromise
method is only valid
provided that the values of A
do not have a then
method.