natpryce
07/20/2017, 11:36 PMthen
method of the Promise class supports mapping, but not flatmapping. Calling then
with a function of type (T)->Promise<S> should return a Promise<S>, but instead it returns a Promise<Promise<S>>. This makes it impossible to use the Fetch API.konsoletyper
07/21/2017, 7:41 AMkonsoletyper
07/21/2017, 8:12 AMthen
returns a promise it's not passed forward as is, but gets resolved first.konsoletyper
07/21/2017, 8:13 AMnatpryce
07/21/2017, 1:21 PMkonsoletyper
07/21/2017, 1:24 PMnatpryce
07/21/2017, 1:41 PM@JvmName
annotation on the JVM platformnatpryce
07/21/2017, 1:42 PMthen
in JSkonsoletyper
07/21/2017, 1:44 PM@JsName
annotationkonsoletyper
07/21/2017, 1:44 PMPromise
, say then
and thenPromise
, though it seems a bit uglynatpryce
07/21/2017, 1:46 PMnatpryce
07/23/2017, 8:26 PMnatpryce
07/23/2017, 8:27 PMnatpryce
07/23/2017, 8:27 PMnatpryce
07/23/2017, 8:27 PMnatpryce
07/23/2017, 8:28 PM