tagged [wait]

How can I wait for 10 second without locking application UI in android

How can I wait for 10 second without locking application UI in android I am stuck with a problem, I want to wait 10 second because I want my application to start the code below after that 10 sec but w...

10 Feb at 12:43

Why must wait() always be in synchronized block

Why must wait() always be in synchronized block We all know that in order to invoke [Object.wait()](http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#wait%28%29), this call must be placed...

27 May at 08:0

How to asynchronously wait for x seconds and execute something then?

How to asynchronously wait for x seconds and execute something then? I know there is [Thread.Sleep](http://msdn.microsoft.com/en-us/library/d00bd51t.aspx) and `System.Windows.Forms.Timer` and [Monitor...

2 Feb at 12:27

How do I wait until Task is finished in C#?

How do I wait until Task is finished in C#? I want to send a request to a server and process the returned value: ``` private static string Send(int id) { Task responseTask = client.GetAsync("aaaaa")...

How to make main window wait until a newly opened window closes in C# WPF?

How to make main window wait until a newly opened window closes in C# WPF? I am new to WPF as well as C#, please bear with me. I have a main window which opens up a new window. Now this new window is ...

12 Dec at 09:53

How to make the script wait/sleep in a simple way in unity

How to make the script wait/sleep in a simple way in unity How can I put a sleep function between the `TextUI.text = ....`, to wait 3 seconds between each phrase?

10 Sep at 08:44

await Task.Delay() vs. Task.Delay().Wait()

await Task.Delay() vs. Task.Delay().Wait() In C# I have the following two simple examples: ``` [Test] public void TestWait() { var t = Task.Factory.StartNew(() => { Console.WriteLine("Start");...

7 Nov at 10:12

Displaying wait cursor in while backgroundworker is running

Displaying wait cursor in while backgroundworker is running During the start of my windows application, I have to make a call to a web service to retrieve some default data to load onto my application...

Wait for n seconds, then next line of code without freezing form

Wait for n seconds, then next line of code without freezing form Hi I am trying to find a method of waiting a number of milliseconds before moving to the next line of code, I have looked into Thread.S...

14 Apr at 19:6

How to create javascript delay function

How to create javascript delay function I have a javascript file, and in several places I want to add a small delay, so the script would reach that point, wait 3 seconds, and then continue with the re...

1 Jun at 14:47

How to wait till the response comes from the $http request, in angularjs?

How to wait till the response comes from the $http request, in angularjs? I am using some data which is from a RESTful service in multiple pages. So I am using angular factories for that. So, I requir...

24 Aug at 18:35

Selenium WebDriver - How to set Page Load Timeout using C#

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 the following code, setting the dri...

3 Mar at 12:28

Using Task.wait() application hangs and never returns

Using Task.wait() application hangs and never returns I am new to C# and using `Task`. I was trying to run this application but my application hangs every time. When I am adding `task.wait()`, it keep...

Java Wait for thread to finish

Java Wait for thread to finish I have a thread downloading data and I want to wait until the download is finished before I load the data. Is there a standard way of doing this? More Info: I have a Dow...

Alternatives to using Thread.Sleep for waiting

Alternatives to using Thread.Sleep for waiting Firstly I am not asking the same question as [C# - Alternative to Thread.Sleep?](https://stackoverflow.com/questions/5450353/c-sharp-alternative-to-threa...

19 Oct at 20:1