Get the latest tech news
JavaScript await was rogue rogue along
Don’t tell me you don’t know await is rogue too, jess christ. Tell me what is going here.
Example by Thomas Right there is a thenable, a big time Javascript interface implemented in .then callback chaining. Tho powerful, custom thenables can be harder to debug if their then method is too complex or deviates from expected promise-like behavior. “The Promise.resolve() Connection”: Explicitly showing how Promise.resolve(thenable) works, as await uses a similar internal mechanism.
Or read this on Hacker News