Questions tagged [delayed-execution]

Delaying the execution of a program or a procedure by a given amount of time, or until the results are explicitly requested.

Delaying the execution of a program or a procedure by a given amount of time, or until the results are explicitly requested.

279 questions
0
votes
0 answers

How to use an execution queue for calling a method from a watch service when changes are detected?

I'm developing a file upload service in Java which watches a selected local folder for changes (new files added, files modified, etc) and uploads every new file to a cloud storage. My problem is, that the WatchDir service I'm using (for detecting…
Aaron Marton
  • 131
  • 1
  • 5
0
votes
1 answer

greasemonkey-javascript: delayed-execution (for bgColor)

this greasemonkey script.. document.getElementById("leftsidebar").style.backgroundColor="rgb(211,211,100)" ..takes no effect, because the webpage is not yet loaded completely when greasemonkey is executing this script. -What do I have to do to…
Heiko
  • 17
  • 1
  • 8
0
votes
1 answer

Gameplay3D gameplay::TimeListener

Can someone write a concrete example about how to use this function in Gameplay3D: virtual void gameplay::TimeListener::timeEvent ( long timeDiff, void * cookie ) [pure virtual] I mean a would like to call a function after t…
huse
  • 324
  • 2
  • 11
0
votes
0 answers

How do I create a delay in js akin to sleep()

I need to create a delay in js. I could use setTimeout but then the code continues to execute. During the delay, I want the script to do nothing. Is there any way to do this?? To be more clear: Eg. If I am doing two animations. 1)first…
leoOrion
  • 1,833
  • 2
  • 26
  • 52
0
votes
2 answers

How do I add a delay for mouseover audio (sound on hover)

Hi I'm trying to find out how would I put a 10 second delay for the mouseover to start playing audio? Here is the code I have been working with. function PlaySound(soundobj) { var thissound = document.getElementById(soundobj); …
troxie
  • 21
  • 6
0
votes
1 answer

LINQ to ENTITY select query execution takes long time - WPF

I have a usercontrol in WPF project which it execute a select query which takes a long time this is the code Entities1 context = new Entities1(); ObservableCollection _E = new…
pooooooneh
  • 19
  • 7
0
votes
5 answers

dispatch_after is not working in loop on ios

I need 1 sec delay in for loop but it is not working. I need to remove tableview cell with 1 sec delay with animation so it will remove one by one. Currently all rows are deleting at the same time.For loop is already in dispatch_after for 3 sec so…
DJtiwari
  • 519
  • 1
  • 6
  • 21
0
votes
2 answers

Adding a delay in a thread group - JMeter

This may sound like a duplicate question but its nit, I've searched a lot before putting this here. I have a single thread group with 10 users and 28 HTTP requests, what I want is something like: Thread 1 --->rqst 1 Thread 1 --->rqst 2 Thread 1…
Bisho Adam
  • 191
  • 1
  • 2
  • 12
0
votes
1 answer

Use force and delay to produce stream of even integers in generate-and-filter style

I am trying to learn the use of delay and force in Scheme. I created a function which outputs the even numbers in the list. Now I am trying to use delay and force with function. But I am getting error : unbound symbol : "delay" []. Can someone…
Bikram Singh
  • 139
  • 1
  • 1
  • 9
0
votes
4 answers

Using javascript/jQuery, wait 3 seconds for click, then proceed

I've been trying to figure out how to run an infinite loop while pausing for user click, then allow for a break out. When the loop starts, the user is presented with an image, and must choose the identical image from one of 4 displayed. If they…
0
votes
1 answer

Avoid White Screen before Webview in Android

I am developing an android app and I have two activities splash and first. I am wrapping a web url in a webview. But a white screen appears whenever I click any link in a webview. How can I remove the white screen because it gives a very annoying…
Zesane
  • 7
  • 1
  • 5
0
votes
1 answer

Android Delay Time Performance - View visibility - should we check view visibility before setVisibility?

Base on the input data, my layout will show some view and hide some other. So should I check their visibility with getVisibility() before setVisibility()? What would be better in term of delay time performance? (My layouts have a lot of picture and…
0
votes
1 answer

Scheme list with delay

Here is a list of numbers that when takeD is called it will generate a list base off the previous list. For example if you say (takeD 3 L1) you will get a list (1 2 3). intlistNew creates a list from a different list starting from the number given.…
Jonathan
  • 197
  • 3
  • 8
0
votes
1 answer

Equivalent of Windows API PostMessage to self for a WPF/XAML app?

In the "old days" of Windows app development, using the PostMessage Windows API function to post messages to your own app was a great way to move the processing of a particular task out of the current stack context, while staying on the main thread…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
0
votes
1 answer

fine-uploader delayed upload queue

I am developing a web-based tool that allows users to upload photos to my website from their mobile device. In order to manage uploads in areas with poor connectivity, and avoid having the users burn their own data, I want to create an upload queue…