Skip to content Skip to sidebar Skip to footer
Showing posts with the label Es6 Promise

How To Chain Nested Promises Containing Then And Catch Blocks?

How to chain ES6 nested Promises with each Promise in the nesting having then and catch blocks? F… Read more How To Chain Nested Promises Containing Then And Catch Blocks?

Js Es6 Promise Chaining

I'm trying to learn how to use promises, but am having trouble comprehending the chaining. I as… Read more Js Es6 Promise Chaining

Returning Promise With An Async Function

Given the following two implementations (in ES6 / NodeJS) async TestFunc() { return new Promise… Read more Returning Promise With An Async Function

Async/await Return Promise { }

my question is: why does this log 'promise {pending}' despite of i used async/await? I chec… Read more Async/await Return Promise { }

Why Async/await Have Different Output When Await Expression Is A Argument Of Concat()?

I am confused about the examples below. I understand why output2 is [1000,2000,3000] because of the… Read more Why Async/await Have Different Output When Await Expression Is A Argument Of Concat()?

Reject A Promise And Stop Timeout On Socket-io Event

I'm currently using the following function to simulate awaiting (sleep) in my Node.js server sc… Read more Reject A Promise And Stop Timeout On Socket-io Event