python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Dynamic time delay depending on time of completion of another task
import time
while(1):
# Task A
time.delay(1)
print('Hi')
In the above example code, I want to print 'Hi' every 1 sec, while simultaneously performing Task A. Task A takes a variable amou...
aninini
Votes: 0
Answers: 1
How to use start-sleep with value assign in variable using Powershell?
I would like to use start-sleep in powershell. But I need to assign the value to variable. But seem the value is inconstant if the variable not using [int]. Is it true that if we want to use start-sle...

Cheries
Votes: 0
Answers: 1
In Akka, how can network delays be simulated?
I have a question that is more of a design one rather than a coding one.
I'm currently using Akka (we're transitioning from Classic to Typed) to implement a Raft cluster, using the Java version. Our a...
mfranzil
Votes: 0
Answers: 2
Testing Function with Multiple Coroutine Delays
Could someone please advise how to assert on lines of code which are behind coroutine delays in functions. I am unable to do this using injected dispatchers and using runBlockingTest. I have also upda...
adrem7
Votes: 0
Answers: 2