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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of javascript

javascript

Photo of rogue rogue

rogue rogue

Photo of JavaScript await

JavaScript await

Related news:

News photo

Odyc.js – A tiny JavaScript library for narrative games

News photo

Is It JavaScript?

News photo

Show HN: Moon Phase Algorithms for C, Lua, Awk, JavaScript, etc.