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)
What is the best way to handle function interrupts in javascript
Basically I have two async functions. One of them is a simple 5 second timeout and the other is a complicated async function with multiple steps.
Here is an example
const delay = ms => new Promise(...

Daniel
Votes: 0
Answers: 3
ChannelReader.ReadAsync(CancellationToken) and ChannelWriter.WriteAsync(CancellationToken) don't return or throw when token is signaled
EDIT: I'm cleaning up the description because I've since determined this also impacts WriteAsync, not just ReadAsync...
If one of these calls is currently blocking - ReadAsync because the channel is e...
Jeff
Votes: 0
Answers: 1
How can I prevent the losing arm of a Promise.race from activating?
I'm sending the same query to a large (well, okay, n=5) number of identical endpoints (a few kubernetes clusters) and collating the results together. I want the requests to go out in parallel and time...
badp
Votes: 0
Answers: 2
Terminate promise given a socket disconnects
I have an Express.js website that utilizes socket.io. For each user (socket) that connects, a function is called that can take a long time to resolve.
server.js
const app = express();
const server = h...

Christian Lisle
Votes: 0
Answers: 1