It really depends on what you mean by “stops / delays the application”. If you have a single-threaded application, you can simply use any of the various sleep calls (sleep, sleep, apply, etc.). This is probably not what you want, because it will simply cause the user interface to freeze for the user and not stop the background threads.
To give a decent answer, you probably need to know what you are actually trying to do. You were waiting for something, polled a resource, etc.
source
share