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 asynchronously wait for x seconds and execute something then?

I know there is Thread.Sleep and System.Windows.Forms.Timer and Monitor.Wait in C# and Windows Forms. I …

c# winforms forms sleep wait
Kotlin - Wait function

Is there a wait function in kotlin? (I don't mean a Timer Schedule, but actually pause the execution). I have …

kotlin wait
Difference between WAIT and BLOCKED thread states

What is the difference between thread state WAIT and thread state BLOCKED? The Thread.State documentation: Blocked A thread that …

java multithreading block wait
Lua - get command line input from user?

In my lua program, i want to stop and ask user for confirmation before proceeding with an operation. I'm not …

lua user-input blocking wait
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 …

c# cursor backgroundworker wait
How to wait for all tasks in an ThreadPoolExecutor to finish without shutting down the Executor?

I can't use shutdown() and awaitTermination() because it is possible new tasks will be added to the ThreadPoolExecutor while it …

java android multithreading wait threadpoolexecutor
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 …

c# timer delay wait
How can the wait() and notify() methods be called on Objects that are not threads?

How can the wait() and notify() methods be called on Objects that are not Threads? That doesn't really make sense, …

java multithreading wait notify
Implicit declaration of function ‘wait’

I am getting a warning > Implicit declaration of function ‘wait’ < and when I run the program it works …

c wait pid
Wait for a while without blocking main thread

I wish my method to wait about 500 ms and then check if some flag has changed. How to complete this …

c# multithreading wait