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.
(jSRichFuture: StringAdd).self
(jSRichFuture: StringFormat).self
(jSRichFuture: ArrowAssoc[JSRichFuture[A]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(jSRichFuture: Ensuring[JSRichFuture[A]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead