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

Getting Api Call In Node8.10 In Lambda Results In Promise And Undefined

I have a Lambda function written in Node8.1 in which I'm trying to get an array of objects (pho… Read more Getting Api Call In Node8.10 In Lambda Results In Promise And Undefined

Es6 Giving Syntaxerror: Unexpected Token )

Here is my Node.js script: pDownload('http://serv/file', 'localfile') .then( ()=&… Read more Es6 Giving Syntaxerror: Unexpected Token )

How To Chain A Promise.all With Other Promises?

I want to execute my code in the following order: Promise 1 Wait for 1 to be done, then do Promise… Read more How To Chain A Promise.all With Other Promises?

How Do I Handle Multiple Browser Scripts Making The Same Calls To The Back-end Service

I have a web page where different parts of it all need the same back-end data. Each is isolated, s… Read more How Do I Handle Multiple Browser Scripts Making The Same Calls To The Back-end Service

I'm Getting A 'wrapped Promise Not Iterable Error' Even Though I Have Only One Parameter

I'm trying to use a Promise.all in my node.js microservice. The intent of the Promise.all is to… Read more I'm Getting A 'wrapped Promise Not Iterable Error' Even Though I Have Only One Parameter

How To Implement Cancellable, Ordered Promises?

I've put together an example to demonstrate what I'm getting at: Type in the 'search&#… Read more How To Implement Cancellable, Ordered Promises?

How To Pass Parameters In An Array Of Functions Using A Series Of Promises

I have the following functions of Promises: const func1 = () => new Promise((resolve, reject) =&… Read more How To Pass Parameters In An Array Of Functions Using A Series Of Promises

How Can I Use Promises To Catch Errors When They Might Not Be Wrapped In A Promise?

Background I am using Promises, and I have a multitude of functions that may or may not return a Pr… Read more How Can I Use Promises To Catch Errors When They Might Not Be Wrapped In A Promise?