Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33044

Re: Solved: synchronizing asynchronus request

From Richard Maher <maher_rjSPAMLESS@hotmail.com>
Newsgroups comp.lang.javascript
Subject Re: Solved: synchronizing asynchronus request
Date 2017-04-18 21:39 +0800
Organization Aioe.org NNTP Server
Message-ID <od54v2$1pt8$1@gioia.aioe.org> (permalink)
References <ocv32h$248$1@shakotay.alphanet.ch> <od3fqe$1bi1$1@gioia.aioe.org> <od4o09$og4$1@shakotay.alphanet.ch>

Show all headers | View raw


On 18-Apr-17 5:58 PM, Une Bévue wrote:
> Le 18/04/2017 à 00:32, Richard Maher a écrit :
>>>
>> Could Promises help you here?
>>
>> https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise/all
>>
>>
>
> Yes, u'r right !
>

Glad it worked.

What I used to do, and may well do again, is instantiate and 
object/closure as a counting semaphore that is only referenced by one 
instance of each of your asynch routines. When the limit or total is 
reached a final callback is called.

I'm still ambivalent about promises but they appear to be trying to 
usurp asynch and can be easier to read I guess.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-16 08:30 +0200
  Re: synchronizing asynchronus request Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-04-16 11:09 +0100
    Re: synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-16 18:38 +0200
  Re: synchronizing asynchronus request Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-04-18 06:32 +0800
    Solved: synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-18 11:58 +0200
      Re: Solved: synchronizing asynchronus request Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-04-18 21:39 +0800
        Re: Solved: synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-19 07:10 +0200
          Re: Solved: synchronizing asynchronus request "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-19 12:17 +0200

csiph-web