Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

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 ...
Daniel's user avatar
  • 906
1 vote
0 answers
38 views

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 "...
Scipion's user avatar
  • 12k
-3 votes
0 answers
70 views

I have this code: func drawCount() { Task { await _drawCount() } } func _drawCount() async { let k = await Task.detached(priority: .low) { return gfed.filter{$0.blah}....
Fattie's user avatar
  • 9,770
1 vote
0 answers
41 views

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 ...
Sigma Octantis's user avatar
0 votes
1 answer
82 views

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 ...
AmirHosein Sadeghimanesh's user avatar
0 votes
3 answers
81 views

import {Suspense} from "react" type Props = { params: Promise<{joblistingId: string }> } export default function JoblistingPage(props: Props) { return ( <...
Ujjawal Bindal's user avatar
3 votes
0 answers
92 views

Can I modify host data in host_data_ptr after the following ? cudaMemcpyAsync(device_data_ptr, host_data_ptr, size, cudaMemcpyHostToDevice, ...
YSF's user avatar
  • 41
Best practices
0 votes
6 replies
130 views

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 ...
Vasantha Kumar's user avatar
-3 votes
0 answers
54 views

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 ...
Aatif Rafiq's user avatar
0 votes
0 answers
41 views

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 #...
KansaiRobot's user avatar
  • 10.6k
Advice
0 votes
1 replies
53 views

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 ...
Sidharth Ramalingam's user avatar
4 votes
4 answers
350 views

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(...
Theodor Zoulias's user avatar
Advice
1 vote
4 replies
82 views

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 ...
Antoine101's user avatar
0 votes
1 answer
45 views

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 ...
Shardic's user avatar
-2 votes
2 answers
122 views

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 ...
Wladyslaw Skiba's user avatar
-3 votes
1 answer
131 views

I want to loop and ask user if he wants to continue. If no answer for a while, loop anyway. while (true) { Console.WriteLine("\nDo you want to continue? (Type 'no' or 'exit' to break, or wait ...
Doof Warrior's user avatar
3 votes
0 answers
95 views

I'm trying to expose a C++ interface and callback system to Python using pybind11. In C++, everything works as expected: the callback is triggered in real time from a background thread. In Python, ...
Lukas's user avatar
  • 83
0 votes
3 answers
121 views

Below code (run in: typescriptlang.org): const sleep = async (ms: number): Promise<void> => { return new Promise((resolve) => setTimeout(resolve, ms)); }; async function bar(x: number) {...
Jon's user avatar
  • 195
1 vote
0 answers
107 views

I keep getting a timeout error which I can't currently explain. I'm new to networking in Python, but I can create and interact with example websocket code. For some reason the code below hits a ...
mathPhys's user avatar
1 vote
1 answer
165 views

If I do a memcpy_async on a per thread basis, everything works fine, see the test_memcpy32 below. This code prefetches data within a single warp. I want to expand this, so that I can prefetch data in ...
Johan's user avatar
  • 77.4k
0 votes
0 answers
54 views

I have the following PyGObject code as an MWE: import gi gi.require_version("Gtk", "4.0") from gi.repository import Gtk, GLib class FontSizeApp(Gtk.Application): def __init__(...
John's user avatar
  • 41
-1 votes
1 answer
80 views

I’m trying to start a per-shard TCP listener in Seastar, where each shard binds to its own port (6010 + shard_id). On shard 0, everything works — the listener binds and accepts connections fine. But ...
Somesh Mohan's user avatar
2 votes
1 answer
65 views

I’m working on a FastAPI service deployed with Uvicorn using multiple workers to handle voice communication with Twilio, and I’m running into a routing problem. Current architecture: A client sends a ...
Lucas Pacífico's user avatar
2 votes
1 answer
98 views

I need to execute an async function for a thread local. The minimal example: use std::cell::RefCell; thread_local! { static REQUESTS_CHECKER: RefCell<()> = RefCell::new(()); } async fn a() ...
porton's user avatar
  • 5,909
-3 votes
1 answer
104 views

I apparently hit a Rust bug. The minimal example: use std::cell::RefCell; thread_local! { static REQUESTS_CHECKER: RefCell<()> = RefCell::new(()); } async fn a() {} async fn b() { ...
porton's user avatar
  • 5,909
0 votes
1 answer
56 views

I’m building an Android native application where most of the business logic resides in C++. For example, UI events like Key Press or Drag-Drop arrive on the main thread. To process them, I forward ...
Rohan Pande's user avatar
0 votes
0 answers
121 views

I’m building a small web server in Rust and I want the server’s add_route method to accept both synchronous and asynchronous handlers ergonomically. Goal: allow end-users to write code as simple as: //...
Fahed's user avatar
  • 205
1 vote
0 answers
41 views

I have a typescript file with the following non async function. export function MSALInstanceFactory(): IPublicClientApplication { const environmentService = new EnvironmentService(); const ...
meji's user avatar
  • 1,108
2 votes
2 answers
96 views

I’m learning about asynchronous programming in Python and testing with asyncio. import asyncio import random async def worker(name): delay = random.randint(1, 3) await asyncio.sleep(delay) ...
Anuj Mishra's user avatar
0 votes
1 answer
80 views

I'm trying to spawn multiple parallel (not concurrent) tasks. Every task is running a PUT operation to a custom S3 storage using AWS SDK for Rust. The function body looks the following (the different ...
lukeflo's user avatar
  • 195
0 votes
1 answer
86 views

I'm working for weeks to get the duration of a video file. I want to use direct api calls. I know, that I can use external command line tools to get it. But I want to avoid the dependencies with these ...
Peter71's user avatar
  • 2,324
1 vote
1 answer
92 views

Suppose I have two stored procedures, foo and bar, both written using Snowflake Scripting language. Inside foo, I want to call bar asynchronously and get a return value from bar. Is there currently a ...
Kal's user avatar
  • 1,729
0 votes
1 answer
108 views

First, Please correct me anything I inferred about asynchrounous programming in dart, and even what I summarized from the docs, And please check if my idea about when Future objects are correct. I ...
B1LLP4RK's user avatar
0 votes
1 answer
124 views

Before asking this question, I extensively searched stackoverflow and other platforms for similar questions. However I could not find an answer to my problem. So, basically, I am trying to use dart ...
Alp's user avatar
  • 3,147
0 votes
0 answers
62 views

I have a WPF application and I'm trying to do some async stuff in the startup. I'm trying to move from: [STAThread] public static void Main(string[] args) { _app = new Application { ...
sfaust's user avatar
  • 2,465
-5 votes
1 answer
122 views

const randomGIFFunc = async function(dirname) { const dirPath = 'src/gifs/' + dirname; fs.readdir(dirPath, (err, files) => { if (err) { console.log('Error reading directory: ', err ); ...
M.E.G.'s user avatar
  • 11
0 votes
1 answer
240 views

I am trying to create a ReAct agent in LlamaIndex using a local gpt-oss-20b model. I have successfully loaded my local model using HuggingFaceLLM from llama_index.llms.huggingface and it seems to be ...
meysam's user avatar
  • 194
0 votes
0 answers
103 views

I'm building a Flutter app using Riverpod for state management. I have a SplashScreen that checks for both network connectivity and user authentication status. The SplashScreen should display ...
Shivam Sharma's user avatar
2 votes
1 answer
89 views

I would like to optimize my current function called process_coordinates. import asyncio from aiohttp import ClientSession from tqdm.asyncio import tqdm import pandas as pd from streetlevel import ...
Daniel AG's user avatar
  • 121
0 votes
1 answer
52 views

I have to paste an additional user confirmation modal box after user press Ok button in a previous message box. How to do it? What I have as source: export function CancelReleaseModal(props: ...
Anton Rodriges's user avatar
1 vote
1 answer
136 views

I'm experiencing unexpected behaviour during a file read using tokio's async I/O API. I've optimized file reading in the following manner: Any time I read data I await a pending join handle that ...
NoBullsh1t's user avatar
1 vote
1 answer
104 views

I am trying to get the following simple apply function to compile (simlified for example): struct Context(i32); pub async fn apply<F, Fut>(ctx: &mut Context, f: F) where F: Fn(&mut ...
ChrisB's user avatar
  • 4,156
0 votes
0 answers
92 views

I have this code which works but is a complete mess. Is there any more efficient way to read a Boolean value from a stream asynchronously that doesn't involve checking each character in such a manual ...
InfiniPLEX's user avatar
0 votes
0 answers
92 views

I'm written an Promise class to block while async transfers json are done. For every async transfer I call before "addwaiter", when the transfer is done I call "removewaiter". The ...
net2use's user avatar
  • 11
1 vote
1 answer
141 views

I have created a Blazor application that uses Authentication Type = User Accounts I have added a new menu item to the account area. This new area has a spinner that is shown until the data in that ...
JamesS's user avatar
  • 2,350
0 votes
2 answers
114 views

I'm running a Django application on Google Cloud Run using the default WSGI-based setup (e.g., Gunicorn/ runserver for local dev). To avoid blocking during long-running operations like third-party API ...
user26535132's user avatar
1 vote
0 answers
87 views

I tried to switch our application to use Async Events. Now our event publisher tests fail. I found a few posts mentioning this https://github.com/spring-projects/spring-framework/pull/30020 So with ...
Thomas's user avatar
  • 7,290
0 votes
1 answer
549 views

I'm trying to implement a simple MCP Server and Client. MCP Server just has a single function to create a file Server Implementation @Slf4j @Service public class FileSystemService { ...
Gagan's user avatar
  • 141
1 vote
1 answer
143 views

How to verify if Boost.Asio actually uses Windows Overlapped I/O for file operations? I'm implementing high-performance file I/O in C++ on Windows and need to confirm whether Boost.Asio truly ...
Xiros's user avatar
  • 11
0 votes
0 answers
161 views

I'm trying to write integration tests for my FastAPI registration endpoint using SQLModel and an async PostgreSQL test database but after succesful register database don't cleaned up even i have await ...
akkkkkkkkkk's user avatar

1
2 3 4 5
1040