After careful reading, I'd blame the coding style more than the language :-/ `Promise.resolve(this._uriToLoadPromise).then(callback)` is a simpler implementation of _callWithURIToLoad
-
-
-
Please read again. Your proposal is what the code _used_ to do. The whole point of this change is to NOT have the behavior be async if it doesn't have to be. I assume there are good reasons for wanting that in this case.
End of conversation
New conversation -
-
-
obj[Symbol.toStringTag] === 'Promise' works here
-
Sort of, maybe, kinda. It depends.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.