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
5
votes
4 answers

jQuery passing a function call through to another function and order of execution

I have this javascript: triggerAnimation(listItem,toggleToggleRadioListItem(listItem)); function triggerAnimation(listItem,passThruFunction){ listItem.find(".inlineLoading").show(); // pause and then call the toggle function …
DA.
  • 39,848
  • 49
  • 150
  • 213
4
votes
2 answers

How does setNeedsLayout work?

I would like to know how Apple's -setNeedsLayout works. I already know that it's more efficient than directly calling -layoutSubviews, since I might need to do that twice in a method. And that's just what I need it for: some custom…
Christian Schnorr
  • 10,768
  • 8
  • 48
  • 83
4
votes
2 answers

Python Aiohttp Asyncio: how to create delays between each task

Problem I'm trying to solve: I'm making many api requests to a server. I'm trying to create delays bewtween async api calls to comply with the server's rate limit policy. What I want it to do I want it to behave like this: Make api request #1 wait…
Aaron Ahn
  • 77
  • 1
  • 6
4
votes
3 answers

Delayed execution / scheduling with Redis?

Any tricks to do delayed task execution (i.e. scheduling) based on Redis? Perhaps some clever way to delay BLPOP for a given number of seconds?..
Alexander Gladysh
  • 39,865
  • 32
  • 103
  • 160
4
votes
1 answer
4
votes
2 answers

What are the most time consuming checks performed by .NET when executing a managed application?

I've developed a .NET based Windows service that uses part managed (C#) and unmanaged code (C/C++ libraries). In some domain environments (e.g. Win 2k3 32bit server inside domain abc.com) sometimes the service takes more than 30 seconds to start…
ltorje
  • 47
  • 2
4
votes
2 answers

Mathematica: Plotting a module with FindRoot in it

I run into this problem occasionally, and I haven't found a way around it. It usually happens when I'm finding the root of an equation, and want to maximize/minimize/plot that root according to some parameter. So I try to wrap the the code in a…
argentum2f
  • 4,842
  • 2
  • 25
  • 30
4
votes
1 answer

PHP Wait for PDF to be created and then send it in a mail?

I've written this script that sends customer a receipt of their order, but it has a problem: It won't wait for the PDF script. So it simply requires the PDF script, and starts executing it and sends the mail while the PDF script is still working on…
user1537415
4
votes
2 answers

iOS - Web service request after delay

I have a search bar with a suggestions UITableView that gets populated (using JSON services) as the user types. These service calls need to be made after a delay of 500ms of non-typing. If the user starts to type in this period of 500ms, the…
Ravi
  • 7,929
  • 6
  • 38
  • 48
4
votes
2 answers

Is there a way to stop MYSQL Delayed Inserts from the MySQL configuration?

I got stuck with a weird issue with one of our servers. I see there are delayed mysql…
Venetsian
  • 41
  • 1
  • 3
3
votes
2 answers

Objective-C - perform a function at given time/date

How might one get a function to be called at given time and date? For example, I would like to store some values of some variables at midnight (and clear them to zero) so they can be compared with the previous days values. How might I accomplish…
Jack Nutkins
  • 1,555
  • 5
  • 36
  • 71
3
votes
2 answers

iOS Simulator Keyboard Input Delay

Whenever I use the keyboard in the iOS Simulator, I get about a 5 second delay from when I tap a key and when the input appears. And I get a similar experience with the UIPicker. Everything else runs at normal speed. This problem only started after…
RohinNZ
  • 3,338
  • 5
  • 24
  • 34
3
votes
1 answer

How to code a counter which loops within an interval in Kotlin Android

I am trying to build a countdown view inside an Android App with Kotlin. The code that I currently have crashes the app while running. PS: Integer timer should be altered later on the application as well. var timer: Int = 50 // Declared…
3
votes
4 answers

c# reliable delayed/scheduled execution best practice

The project I am working on requires some executions to be done at a certain time. I am not sure what would be the best way to deal with this situation. The method must be able to survive server restart/maintenance. And method calls must be…
Jeff
  • 13,079
  • 23
  • 71
  • 102
3
votes
1 answer

Is it safe to mix delayed dll loading and manual call of LoadLibraryA?

I am compiling a program for windows. I want it to check if foo.dll exists in the system, and if not, to print an error message and exit. Is it safe to do it like this: pass the /DELAYLOAD foo.dll flag to the linker; at the very beginning of the…
parean
  • 305
  • 3
  • 13
1 2
3
18 19