285 questions
0
votes
1
answer
67
views
Execute a function at specific time based on a model field
I have a Meeting model which stores a datetime field ends_at. I want to execute a function at the end of every meeting, but meetings can get cancelled or rescheduled.
I tried implementing the whole ...
0
votes
1
answer
45
views
Solution for delay in nested Ajax calls
I have a code below, it's working like I want but I need to add a delay for each AJAX call in nested AJAX calls, please advise, many thanks
I searched & tried many samples such as: for(const) or ...
0
votes
1
answer
564
views
Scheduled messages in MassTransit
I use masstransit 8 + amazon sqs/sns, the app is running in Windows Docker container.
I send scheduled messages, and the delay could be up to few hours, here is the code:
public Task Consume(...
2
votes
1
answer
752
views
Cancel/abort a delayed fetch request
I have a simple UI with a button to trigger a fetch request to an API.
<button type="button"id="fetch">Fetch products</button>
I want to implement some logic (using ...
-1
votes
1
answer
233
views
Problems with load order for JavaScript Modules
Github repo: https://github.com/leighhobson89/ChipshopChopper
I am having difficulties in forcing one .js file to run its code before another one attempts to. The grit of the problem is that I am ...
0
votes
3
answers
119
views
showModelBottomSheet is not opening after Future.delay
I have two showModalBottomSheet(). In the First modalSheet there is a IconButton(). When the IconButton tapped, The First sheet should be closed and after 2 seconds the second modalSheet should be ...
1
vote
1
answer
190
views
Why calling take() method Java DelayQueue doesn't block the whole data structure for all threads?
I'm trying to figure out, how the java.util.concurrent.DelayQueue works in the multithreaded environment. I see that this data structure uses ReentrantLock internally, and it is acquired at the ...
0
votes
0
answers
72
views
How to delay preMove for each file detected using SFTP?
I have the following situation: I need to add a 30 second delay everytime a file is detected by a SFTP route.
The route is as follows for now:
sftp://username@host:port/path/to/import/directory
?...
0
votes
1
answer
53
views
Simulation of interrupted set-up and delayed server shutdown in batch processing system
I would like to create a system with servers that need time to set up before being ready to serve. The system starts to set up whenever enough 2 customers are in the queue.
When a batch (group of 2 ...
0
votes
1
answer
193
views
Calling a function after updateable delay in C++?
Below is my example for "calling a function after updateable delay": the idea is that,
when you first press a key, a timer starts, and when three seconds have expired, the function to delay ...
1
vote
1
answer
50
views
Is a "delayed reference" a known programming pattern?
I'm trying to understand JZZ's API.
One of the pecularities is after you obtain a port (a place to send MIDI instructions to), you can do this:
const a = port.noteOn(0, 'C5', 127); // plays note ...
1
vote
1
answer
54
views
How can I define an array type in typescript that can connect function and its parameter?
Here I have three functions and I put them into a literal:
type AnyCallback = (...args: any) => unknown;
const callbackAlpha = (data: string) => {
console.log(data);
return data.length;
};
...
0
votes
1
answer
51
views
Is it possible for "Jmeter", 'View Results Tree' output recording start after 5 minutes of start of first thread
I want to record output to View Results Tree after 5 min. of start of JMeter. Delay should be there only for first thread. Is there any way I can do that?
Constant Timer delay every thread. I do not ...
2
votes
1
answer
99
views
Is there a delay between when an element style is updated in the code and updated visually? (JS)
I am new to JavaScript.
Context:
I created a bookmarklet (a browser bookmark that executes JavaScript instead of opening a webpage) that creates a "mousedown" event listener. When the ...
1
vote
2
answers
160
views
Evaluation of a self-referencing stream
I came across the following example in Lecture 6B of the SICP lecture series, and need some help understanding how it is evaluated.
The example uses stream processing to create an infinite stream of ...