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.

Need android activity to wait until GPS location obtained

Sorry for my english. I'm trying to get a single location from GPS to put on global variables latitude, longitude. …

android android-activity gps wait android-location
How to write a loop in jQuery which waits for each function to complete before continuing the loop

Please forgive me if this is an obvious one. I have an unknown amount of elements on a page, which …

jquery loops wait each synchronous
Socket server that waits for message from client to read

I have the following socket server in java, import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; …

java sockets wait java-io
wait(long timeout) in a while loop?

I've read that you're supposed to put Object.wait() calls in Java in a while loop. The reason is that …

java multithreading concurrency wait notify
jQuery: Wait till multiple GET requests are successully processed

I need to issue multiple $.get requests, process their responses, and record the results of the processing in the same …

jquery wait get-request
I need a slow C# function

For some testing I'm doing I need a C# function that takes around 10 seconds to execute. It will be called …

c# performance cpu-usage wait performance-testing
Using istringstream in C++

I have some code that utilizes fork, execlp, and wait to make two processes. The objective is to be able …

c++ fork exec wait istringstream
ElasticSearch updates are not immediate, how do you wait for ElasticSearch to finish updating it's index?

I'm attempting to improve performance on a suite that tests against ElasticSearch. The tests take a long time because Elasticsearch …

python elasticsearch synchronization wait polling
Alternatives to using Thread.Sleep for waiting

Firstly I am not asking the same question as C# - Alternative to Thread.Sleep?, or Alternative to Thread.Sleep …

c# multithreading wait thread-sleep
Temporarily bypassing implicit waits with WebDriver

When using implicit waits, as advised here, I still sometimes want to assert the immediate invisibility or non-existence of elements. …

java selenium selenium-webdriver webdriver wait