delayed-execution Questions

5

Solved

I understand that debounce in Undercore.js returns a function that will postpone its execution until the wait time is over. My question is, is there an advantage of using debounce over the regular...

2

Solved

I am trying to make a function that can stage arbitrary computation with lambda. This function takes in any function and parameter pack and stages the computation in a lambda function. A conflict o...
Newsdealer asked 7/7, 2022 at 11:13

6

Solved

I'm inheriting a class and I would like to call one of its constructors. However, I have to process some stuff (that doesn't require anything of the base class) before calling it. Is there any way ...
Pilloff asked 29/9, 2010 at 11:15

3

Solved

Is it possible to start procedure delayed after the calling procedure will end? procedure StartLoop; begin DoSomething; end; procedure FormCreate(...); begin if ParamStr(1)='start' then StartLo...
Dwarfish asked 13/12, 2018 at 5:20

2

Solved

So, I have a public static Bitmap with a delay of 2000 mils inside of it. My problem is that I get return before code that is getting delayed is executed. To give you the idea of my function struc...
Accomplice asked 11/8, 2017 at 19:2

5

Solved

In PHP, I want to put a number of second delay on each iteration of the loop. for ($i=0; $i <= 10; $i++) { $file_exists=file_exists($location.$filename); if($file_exists) { break; } //sle...
Langer asked 14/3, 2013 at 16:16

3

Solved

class Child; class Parent { public: void (*funcPointer)(); void (*funcPointer2)(Parent* _this); void (Child::*funcPointer3)(); }; class Child: public Parent { public: void TestFunc(){ } voi...

4

There are wiki articles about them: (http://en.wikipedia.org/wiki/Futures_and_promises, http://en.wikipedia.org/wiki/Thunk_(delayed_computation)). But I am not sure what are the exact differences b...
Retentivity asked 10/9, 2013 at 3:14

3

Solved

An infinite stream: val ones: Stream[Int] = Stream.cons(1, ones) How is it possible for a value to be used in its own declaration? It seems this should produce a compiler error, yet it works.

4

Solved

GOAL: When a user types character in a text box, make a button appear. When the user clears the text box using the backspace key but holds down that key for a few extra seconds, hide the button in...
Linnlinnaeus asked 6/8, 2015 at 3:59

5

Solved

I want to load an external javascript after page is loaded. Actually the javascript contains source for an ad and its making page load slow. All I want is to delay loading & execution of ads to...

3

Solved

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?..
Orthoclase asked 9/11, 2010 at 21:42

1

Solved

I found that celery supports task chains: http://celery.readthedocs.org/en/latest/userguide/canvas.html#chains. Question is: how can I stop chain's execution in a task? For example, we got a chai...
Hebron asked 7/10, 2012 at 20:22

1

Solved

The book Structure and Interpretation of Computer Programs introduces a memoizing procedure as follows: (define (memo-proc proc) (let ((already-run? false) (result false)) (lambda () (if (not a...
Handyman asked 8/4, 2013 at 2:44

2

I try to create an MS-Dos emulation window with jquery and ajax. It works well but when I type a word or press enter, the script is one character too late on display (no character displayed on firs...
Concent asked 25/12, 2012 at 14:5

3

Solved

I wish to make an AJAX call using jQuery as a "heartbeat" in the background so that my web application can check for new data. For example every 10 seconds. I have seen on other posts that it is p...
Jilli asked 6/12, 2012 at 17:29

1

Solved

I have a design headache here, I'm using PHP and MySQL in conjunction with Java (my project is an Android application). I have to decide how to run a series of server side calculations at regular i...
Palmieri asked 17/7, 2012 at 13:59

8

Solved

There is a JavaScript function, of which I have zero control of the code, which calls a function that I wrote. My function uses DOM to generate an iFrame, defines it's src and then appends it to an...
Headmistress asked 1/1, 2011 at 23:57

2

I have a driver which requires microsecond delays. To create this delay, my driver is using the kernel's udelay function. Specifically, there is one call to udelay(90): iowrite32(data, addr + DATA...
Globular asked 2/12, 2011 at 7:0

2

Solved

So, I've recently converted from Mathematica to Matlab, and while Matlab has most of Mathematica's useful features, I can't figure out how to perform the equivalent of Mathematica's delayed set ope...
Junkojunkyard asked 29/7, 2011 at 20:56

4

Solved

I have a JQuery's .each loop that calls a function with a parameter per iteration, is there a way to delay this function call? I have tried setTimeout as in the following but this does not work as ...

1

Solved

I would like to be able to cancel delayed selectors individually. I can do his with [NSObject cancelPreviousPerformRequestsWithTarget...] but need all the method parameters to do this. At the point...
Mothering asked 15/2, 2011 at 16:48

4

Solved

In fact, this is the same question as this post: How can I make sure my LINQ queries execute when called in my DAL, not in a delayed fashion? But since he didn't explain why he wanted it, the que...
Abdication asked 30/6, 2009 at 14:38

3

Solved

I have a table with a field:: ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP My question is, if I use delayed insert on this table, will the timestamp be the time when the request is queued or the time wh...
Austral asked 10/12, 2010 at 16:15

1

Solved

I have to input several hundred cells into an excel sheet from a C# program. Each time I set a cell or a range, excel slowly responds... presumably updating various outputs between each input I add...
Brilliant asked 23/11, 2010 at 18:58

© 2022 - 2024 — McMap. All rights reserved.