Top "Wait" questions

In programming, 'wait' refers to the act of pausing the execution of a program until a specific condition is met or a given amount of time has passed.

How to force a program to wait until an HTTP request is finished in JavaScript?

Is there a way in JavaScript to send an HTTP request to an HTTP server and wait until the server …

javascript xmlhttprequest httprequest wait
Waiting for image to load in JavaScript

I'm making an Ajax call which returns me some info including an image path. I prepare all this information in …

javascript image load wait
How to wait for a keypress in R?

I want to pause my R script until the user presses a key. How do I do this?

r keypress wait readline readkey
Using wait in AsyncTask

When using a wait in an AsyncTask, I get ERROR/AndroidRuntime(24230): Caused by: java.lang.IllegalMonitorStateException: object not locked by …

android android-asynctask wait
How do you have the code pause for a couple of seconds in android?

Basically I need a pause (based on just a few seconds) to be put into one action so that the …

java android time wait
How to Wait in Objective-C and Swift

I want to change my UILabel's text after 2 seconds. I tried setting my UILabel's text to "A text", and use …

ios objective-c swift wait performselector
Excel vba refresh wait

I am creating some code where I can click on a single button and it will refresh the querytables that …

excel refresh wait vba
Wait for 5 seconds

I want to wait 5 seconds before starting another public void method. The thread sleep was not working for me. If …

android wait
How to use Fork() to create only 2 child processes?

I'm starting to learn some C and while studying the fork, wait functions I got to a unexpected output. At …

c process fork parent-child wait
Selenium WebDriver - How to set Page Load Timeout using C#

I am using Selenium 2.20 WebDriver to create and manage a firefox browser with C#. To visit a page, i use …

c# selenium timeout webdriver wait