Tells HandleRetriesFor() to wait for this promise to be fulfilled
before rerunning the code. Causes an error to be thrown, so
calling this terminates the code at that point.
Parameters
promise: Promise<any>
The promise that must be satisfied before
actions will continue
Tells HandleRetriesFor() to wait for this promise to be fulfilled before rerunning the code. Causes an error to be thrown, so calling this terminates the code at that point.