Questions tagged [delay]

Delay refers to amount of time between two events.

A delay is simply the difference in time between two events.

This may refer to the start and stop of a single event (e.g. data processing delay) or the execution of two separate, independent events.

A delay may be manually implemented by the programmer using sleep or pause functions common in many programming languages.

In the case of computer networks, delay between sending and receiving of data packets is referred to synonymously as latency.

4215 questions
1
vote
1 answer

I need a delay between opening a set amount of tabs from a Chrome Extension

I need to make 3 new tabs in my chrome extension with a delay of a couple seconds between each of the tabs creation, but when I use the chrome.tabs.create in a for loop for(i=0;i<3;i++) with the setTimeout(function() like so for(i=0;i<3;i++){ …
1
vote
1 answer

IOS / MultipeerConnectivity / Delay between SendData and ReceiveData

Im having a game that sends a Players position.x, position.y and angle in an mutablearray every 0.05 seconds using Multipeer senddata. NSMutableArray *Messagee = [[NSMutableArray alloc] initWithCapacity:10]; [Messagee addObject:x]; [Messagee…
1
vote
2 answers

JavaScript: setTimeout doesn't pause the loop

I need to make some delays in my loop, every time after some amount of data (after a few cycles/iterations through my loop) is sent to the server. Sending data and receiving respond from the server works fine, but requested delays in loop still…
Filip CZ
  • 179
  • 3
  • 12
1
vote
3 answers

AngularJS Delay (timeout) each http call in a loop

I have an array. While I loop thru array, I compose request and make http calls. But I want each of that http PUT requests to be made within 16 second gap. I tried n number of ways. I tried to wrap http.then with $timeout, $interval to loop 1 time,…
StackGuru
  • 11
  • 4
1
vote
1 answer

Swift - UITextField - Gesture recognizer delay

I'm using a UITextField and I'd like to trigger a function when the user is taping in the textfield, but I want to wait 1/4sec before triggering the function. How can I do that ?
Fabrice Froehly
  • 163
  • 1
  • 3
  • 10
1
vote
1 answer

Can I delay the instabug IntroDialog?

In my Application class I have this method, that I call on the onCreate of my Application: public void initInstabug() { try { instabug = new Instabug.Builder(this, "45c752889689ac2ae0840d11e2a5f628") …
rosu alin
  • 5,674
  • 11
  • 69
  • 150
1
vote
2 answers

Display Progress bar while delay?

In my app i want to have a delay of 5 seconds and in this five seconds user should see progress dialog i tried this progressdialog.show(); try { Thread.sleep(5000); } catch (InterruptedException e) { …
Manohar
  • 22,116
  • 9
  • 108
  • 144
1
vote
1 answer

Add a time delay between to actions of the same function?

I have a button which when clicked performs myFunction with two actions, i'd like it to perform the first action, wait for 2 seconds, then perform the action. This is the code so far: function myFunction() { …
user2015431
  • 35
  • 1
  • 4
1
vote
1 answer

Xcode: WebView refreshes/reloads after endRefreshing()

I have an iOS app build with Xcode and Swift. When I pull to refresh the activityIndicator spins. When I release the animation/spin will stop immediately but the website only refreshes/reloads after ca. 3/4-1 seconds. Is there a way to show the…
user6465101
1
vote
1 answer

Jquery : delay fadeOut & clearQueue doesn't work?

I don't understand why this code doesn't work: function Messages(type,text) { console.log("In function Message"); $("#message").clearQueue(); console.log("clearQueue :"+$("#message").queue("fx").length+" effet in queue"); …
Crupuk
  • 297
  • 1
  • 3
  • 9
1
vote
1 answer

Show loading animation with delay

In my web application I'm using JSF and primefaces. On some buttons I have time consuming functions. During this time I want to show a loading animation until the complete site was fully built. This I'm doing by calling the functions showLoading()…
filla2003
  • 724
  • 1
  • 8
  • 18
1
vote
1 answer

delaying a function to execute jquery

I want a button pressed, then the button changes style, and a new function loads, after about 1/2 second of the styling. $(document).on('click', '.capital_answers', function(){ if(!$('#capital_answers').hasClass('answered')) { answer =…
Source
  • 1,026
  • 4
  • 11
  • 23
1
vote
0 answers

python3 polling routine TCP/IP

If we want to have commands sent at predefined intervals in Python3 (let's say one command every sec) are there more elegant ways of achieving this other than the sleep.time() method? Furthermore, since it's TCP/IP, which I'm new to, are there…
Ponds
  • 21
  • 3
1
vote
1 answer

Reliable way to make a delay in Python3 code

I have a python 3 program and need a delay of 20 Seconds I have tried time.sleep(20) but that causes loads of problems like program stop responding on windows by the way I'm using tkinter, does any one no a alternative way of making a delay or…
JJLongOne
  • 7
  • 3
1
vote
0 answers

How do I build a delay-loaded libxml2 implementation without a xmlFree error?

So building off my last question, I'm receiving the error message: LINK : fatal error LNK1194: cannot delay-load 'libxml2.dll' due to import of data symbol '__imp__xmlFree'; link without /DELAYLOAD:libxml2.dll Which is, to my understanding,…
NobleUplift
  • 5,631
  • 8
  • 45
  • 87
1 2 3
99
100