Grégory Lureau
02/15/2022, 10:24 AMGlobalScope.promise
and in the my Promise I reject with nothing reject()
this is not considered as an error. I can reject(42)
or with an explicit error, but when there is nothing, it looks similar to resolve()
with no params (getCompletionExceptionOrNull
returns null, isCompleted
returns true). Is there a way to differentiate both cases? And why not considering reject()
as failed with an unknown exception from the Kotlin side?turansky
02/15/2022, 10:39 AMturansky
02/15/2022, 10:39 AMGrégory Lureau
02/15/2022, 10:41 AMGrégory Lureau
02/15/2022, 10:43 AMturansky
02/15/2022, 10:44 AMGrégory Lureau
02/15/2022, 10:49 AM