Skip to main content

Questions tagged [async-await]

This covers the asynchronous programming model supported by various programming languages, using the async and await keywords.

7 votes
1 answer
117 views

The following python code sample simulates an asyncio program which reads from a unix domain socket and prints its output (and additional debug output for later use)...
schade96's user avatar
  • 173
2 votes
1 answer
102 views

I've written a C# API using .NET 9 with the goal of managing a personal investment portfolio – that means, adding funds adding or removing transactions (for ETFs, ETCs, and usual funds) retrieving ...
Daniel's user avatar
  • 353
1 vote
0 answers
53 views

I'm new to Rust and trying to build an async Server. The server should receive UDP packets, process them (which will include more network communication), and respond the result to the client. I had ...
x539's user avatar
  • 201
8 votes
2 answers
1k views

I have a class that manages an HttpClient to make API requests to a third party service. The service requires being logged in to make requests. When logged in, a ...
yasar's user avatar
  • 1,577
5 votes
1 answer
114 views

I'm developing a pipeline that processes unknown ingredient data from the OpenFoodFacts API. The goal is to find valid German words that are not yet in their taxonomy. The tool performs the following ...
kiaora's user avatar
  • 141
5 votes
2 answers
1k views

I'm hoping this should be mostly asynchronous, looking to make this close to 100%, if not 100%, so. This class was created to ease converting image formats, but it has an unlimited number of use cases....
Short Int's user avatar
  • 782
2 votes
1 answer
159 views

My project I am working on requires the following functionality for the processed messages: each message has a priority messages with higher priorities should have precedence over the ones with lower ...
Alexei's user avatar
  • 1,796
2 votes
1 answer
229 views

I asked a question on Stack Overflow and there's a discussion between @Serg, who posted an answer and @Jimi, whose comments suggest that the answer might be wrong. So I implemented the following code ...
Thomas W.'s user avatar
  • 1,719
4 votes
1 answer
200 views

This is a tiny class that creates backup copies of a file so these can be diff'ed to spot the changes compared to last run; used when generating code and so far has proved to be very helpful. ...
aybe's user avatar
  • 612
4 votes
2 answers
165 views

I wrote an idempotent script loader (for the browser), where the same script won't be loaded more than once. scriptLoader.js: ...
lonix's user avatar
  • 153
3 votes
2 answers
2k views

I've written a lot of (await SomeTask).AsList(); in my project, and it's kind of annoying to keep wrapping it. To fix this I've written a little extension method on ...
Joost00719's user avatar
0 votes
1 answer
1k views

Solving the following problem on Protohackers: https://protohackers.com/problem/1 The problem: Each request is a single line containing a JSON object, terminated by a newline character ('\n', or ...
Rish's user avatar
  • 2,526
1 vote
1 answer
181 views

Pretty straightforward question. The methods SubscribeToOrdersAsync and SubscribeToFillsAsync are pretty similar due to ...
nop's user avatar
  • 819
2 votes
0 answers
189 views

For learning purposes, I built a timer that does something every x seconds in Unity using an async Task instead of a coroutine. I'd like to know if there is a less awkward way of writing this: What ...
willywinelover's user avatar
1 vote
2 answers
166 views

I am using Python scraper code to grab publicly available data from http://XXXX.com, but it takes almost 6gb of memory and more cpu. I need to run multiple ...
Learner's user avatar
  • 119

15 30 50 per page
1
2 3 4 5
23