51,988 questions
0
votes
0
answers
35
views
Losing MDC in Quarkus ManagedExecutor
I'm starting an async-process through a REST request. As soon as the REST requests returns, I'm losing the MDC context inside my async execution code. I tried to "copy" it over with ...
1
vote
0
answers
40
views
NG 21 + Vitest + Non-standalone component with async pipe
With Angular 21, I can't test (with vitest) a non-standalone component using the Async pipe. I get the following error:
X [ERROR] NG8004: No pipe found with name 'async'.
To fix this, import the "...
-3
votes
0
answers
76
views
In UIKit, is the behavior of detached Task exactly as described in this example?
I have this code:
func drawCount() {
Task {
await _drawCount()
}
}
func _drawCount() async {
let k = await Task.detached(priority: .low) {
return gfed.filter{$0.blah}....
1
vote
0
answers
50
views
How do I create a lazy asset loader in bevy?
I want to load assets from a custom zip-like format, or even GoldSrc WAD3 files.
My initial attempt was to use a custom AssetLoader, but I'm not feeling comfortable having to load the entire file's ...
0
votes
1
answer
82
views
I have two simple Python functions with time.sleep and reading data so I/O-bound but I don't get expected behavior from threading and asyncio
Previously I had a question on an example of multiprocessing which you can see in the following link
I used a 2 workers pool to split a sum in a function with Python multiprocessing but the timing ...
0
votes
3
answers
83
views
why nextjs is sending async prop from a component to a suspended child component [closed]
import {Suspense} from "react"
type Props = {
params: Promise<{joblistingId: string }>
}
export default function JoblistingPage(props: Props) {
return (
<...
3
votes
0
answers
92
views
Can I modify host data after cudaMemcpyAsync
Can I modify host data in host_data_ptr after the following ?
cudaMemcpyAsync(device_data_ptr,
host_data_ptr,
size,
cudaMemcpyHostToDevice,
...
Best practices
0
votes
6
replies
131
views
Difference between await and .ConfigureAwait(true)
I understand that ConfigureAwait(false) prevents capturing the current synchronization context, allowing the continuation to run on any available thread.
However, I’m not clear about if there is any ...
-3
votes
0
answers
56
views
Async Events telemetry tracing problem because of batching of events
I'm implementing Telemetry in my Spring Boot web app using OpenTelemetry instrumentation.
All is fine except when dealing with async events.
When I produce/publish, for example 100 events - all ...
0
votes
0
answers
41
views
Making gradio to refresh itself without blocking
I have this backend:
from fastapi import FastAPI, HTTPException
import uuid
import asyncio
import random
import time
from loguru import logger
import redis
from contextlib import asynccontextmanager
#...
Advice
0
votes
1
replies
53
views
Flink - Async IO Threads required
we are using Flink's AsyncIO function with Futures to make external gRPC calls. Currently, we have set the async capacity to 1, and we are using a blocking stub to make those calls. For each event, we ...
4
votes
4
answers
351
views
Task.Delay versus custom DispatcherTimer-based delay in WPF
I have a WPF project, and in some of the async event handlers in the WMain.xaml.cs I am using the Task.Delay method to suspend the execution of the handler. Example:
private async void Window_KeyDown(...
Advice
1
vote
4
replies
84
views
Which paradigm and tech stack for an app that listens to messages and updates shapes on a satellite map
I am taking advantage of StackOverflow's new "General advice" question type to present my use case and ask for technical guidance.
I am a Data Scientist with several years experience in ...
0
votes
1
answer
45
views
while task inside @Async cannot be stopped with @PreDestroy in Spring Boot
I have a Problem with asynchronous methods that run on a customTaskExecutors. In the run method I never reach the last log.info that the thread is finished running (where I would usualy put other ...
-2
votes
2
answers
123
views
Waiting for coroutine to end it's job to trigger an event [closed]
I have an Activity that is responsible for creating a new entry in the database. In this activity, a button launches a coroutine to do all the database-related stuff, and when it's done, navigate to ...