Friday 29 March 2019

How to handle concurrency

I have a challenge in my application being a node beginner.I want to write automated tests to a chat api.I have an array with questions which I loop through and post to the api.Responses from the api are not directly fetched unfortunately, there has to be a separate process which runs every 3 seconds checking whether there's a responses to the thread then notify my initial process to send the subsequent message in the queueI'm not sure how to set the initial loop to run only after we detect a response from the polling serviceAnyone care to assist me in this challenge?

Submitted March 29, 2019 at 10:08AM by marvoh

No comments:

Post a Comment