Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34395
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Running promises in order |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <QKqdnRBapfSmMoHHnZ2dnUU7-KHNnZ2d@westnet.com.au> |
| Date | 2017-11-28 13:02 +0100 |
| Message-ID | <XnsA83B84B063686eejj99@194.109.6.166> (permalink) |
Andrew Poulos <ap_prog@hotmail.com> wrote on 28 Nov 2017 in comp.lang.javascript: > How do I run an arbitrary number of promises where the subsequent > promise is not to run before the previous promise is fulfilled? > > The values a previous promise generates is used by subsequent promises. > > The various examples I've googled have the user triggering the next > promise eg. by clicking a button. There must be countless psychological publications about the incertaincy of the fullfillment of promises and their probable timespan. Couldn't you start the execution with a test of a global variable on the fullfullment of the 'former' promise, and the restacking of the latter one on failing of the former? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Running promises in order Andrew Poulos <ap_prog@hotmail.com> - 2017-11-28 11:35 +1100
Re: Running promises in order "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-11-28 13:02 +0100
Re: Running promises in order "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-11-28 13:31 -0800
Re: Running promises in order Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-12-01 02:37 +0100
Re: Running promises in order "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-12-01 06:53 -0800
Re: Running promises in order ali.abdulhannan@gmail.com - 2017-12-02 04:04 -0800
csiph-web