I am looking for a good way to perform sleep() or waitForEvent() in GWT\Javascript.
I am performing a http request and i don’t want to continue execution of the code before the request ends.
I am using an existing code so it is very problematic to re-factor it to wait for an event.
Are there any solutions?
use a flow control library like Frame.js.