51,969 questions
Best practices
0
votes
0
replies
52
views
waiting for asyncio.Task completion, propagate exceptions
For asyncio workloads there's this convenience function that executes passed list of asyncio.Tasks until either
a timeout is hit;
first Task raises an exception; or
all tasks succeed
First two ...
0
votes
0
answers
25
views
Node.js async/await not waiting for external API call inside loop [duplicate]
I’m working on a Node.js backend where I process multiple webhook events and need to call an external API for each item
my code:
const processOrders = async (orders) => {
orders.forEach(async (...
Best practices
0
votes
5
replies
105
views
Handling multiple concurrent connections on a single web server (std::async/select/poll/iocp)
I am currently working on a hobby winsock project and I thought I wanted it to be able to handle multiple concurrent connections/request at once and serving them individually.
Through asynchronous ...
1
vote
2
answers
96
views
Angular search query not updating with user
I am making a zoo angular project practicing RXJS, where when the user searches or puts in a keystroke it first waits a couple milliseconds before searching so you dont do it on every key stroke.
Then ...
-1
votes
1
answer
73
views
React 19 useTransition behaves weirdly with multiple async updates to state [closed]
with startTransition React can now decide some updates are not a high priority and can choose to ignore rendering an older update if its taking too long and continue with the latest one.
eg. if we are ...
1
vote
1
answer
89
views
plumber2 async endpoint does not inherit global environment
When using async = TRUE in plumber2 with the default mirai evaluator, the worker processes do not inherit anything loaded or defined in the global environment of the main R session — this includes ...
0
votes
1
answer
80
views
Why do @Async background threads silently fail in Spring Boot on AWS Lambda, while Node.js fire-and-forget works fine?
We have a Spring Boot application deployed on AWS Lambda that makes outbound calls to OCPI partner APIs (EMSP roaming partners). We use @Async for these outbound calls to avoid blocking the main ...
Best practices
0
votes
2
replies
70
views
How to scan a folder asynchronously in SwiftUI 6?
I can do it with Swift 5, but I do not know how to fix the compilation error with Swift 6. I browsed the net for weeks, made tests and tests, but no solution. Could you help please? I wrote a small ...
Best practices
0
votes
5
replies
98
views
Should I use async to ensure data is returned from db call
I have this function called BulkCopyIntoTable which filters a datatable and based off the max integer of the table im inserting into and inserts data that is greater than that integer. I use the ...
0
votes
1
answer
136
views
Async interface, sync-only implementation: Which of `Task.FromResult` or async-over-sync is the lesser evil? [duplicate]
I have this interface to access files from various providers:
interface IFileProvider
{
Task<bool> FileExistsAsync(string filePath);
...
}
Some of its implementations use network ...
0
votes
0
answers
118
views
How to express type bound for future capturing lifetime of parameter
I am trying to store a function for<'a> FnOnce(&'a Data) -> (impl Future + 'a), but unfortunately we cannot express this as impl Future is not allowed in this position. I tried to ...
Best practices
0
votes
4
replies
86
views
How to adhere to abstraction and asynchrony
public async Task<IEnumerable<Patient>> GetWaitingPatientsAsync()
{
return await _context.Patients.AsNoTracking().Where(x => x.Status == PatientStatus.Waiting).ToListAsync();
}
I ...
Advice
0
votes
1
replies
72
views
How to perform asynchronous LLM inference on Kafka streams using Apache Spark, and handle high-throughput RAG ingestion?
I’m working on a streaming pipeline where data is coming from a Kafka topic, and I want to integrate LLM-based processing and RAG ingestion. I’m running into architectural challenges around latency ...
0
votes
0
answers
78
views
Query 4 Firebase Realtime DB nodes asynchronously and then transform the data in Android Java app
Here is my dilemma, I need to query ALL 4 nodes in Firebase Realtime DB in an Android Java app (I have this working fine in iOS):
PlayerInGroup
Users
PlayerPicks
Teams
I start by getting the ...
5
votes
1
answer
146
views
Why does python 3.13.8 raise an IndentationError when running in asyncio mode on the terminal
Using Python >=3.13.0 (tried 3.11.14, 3.12.10, 3.13.0, 3.13.8 and 3.14.0a5), when I try to run the terminal in async mode, it throws an IndentationError when I try to start an async with code block:...