How do I retrieve the result of a promise at a later time? In a test, I am retrieving an email before sending further requests:
Following scenario: A function gets 3 arrays of a certain length, each one of those needs to be iterated over to find a matching object. When the object is found, the for-loop breaks and the next one isn't called. The arrays can't be merged in this case. Basically like this:
I have a list of grids that can change their data in form by end-user. Finally, I want to sync all the grids by clicking the button, then an operation is performed.
I'm currently working on something where I fire out three promises in an array. At the moment it looks something like this
I'm using promises and have code that looks like the following:Or:I was doing this to avoid missing on errors but was told by a fellow user that I shouldn't be doing this and it is frowned upon.