Y
Hacker News
new
|
ask
|
show
|
jobs
by
darknavi
634 days ago
Traditionally the way to prevent "callback hell" is to use something like async/await syntax. Without that there aren't a ton of good options. Like you mentioned, you could switch to promises with polling.