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
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
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
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
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
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
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
6 votes
1 answer
3k views

Here is my effort to implement extensions for FileInfo object: ...
SeReGa's user avatar
  • 161
1 vote
1 answer
3k views

I want to process a file chunk by chunk to prevent memory exhaustion. I need to consume the file using a read stream. When trying it, this implementation seems to work fine. I am asking your expert ...
Louis Coulet's user avatar
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
10 votes
4 answers
10k views

This class is an Async/Await wrapped Dictionary. Of course it doesn't technically implement IDictionary, but the functionality is basically the same as an IDictionary. It achieves similar ...
Christian Findlay's user avatar
14 votes
2 answers
47k views

I am experimenting with the best way to standardise my dynamic import() expressions when importing javascript modules. import() ...
Rounin's user avatar
  • 409
11 votes
3 answers
788 views

This is my first asyncio/aiohttp web scraper. I am trying to wrap my head around Python's asyncio/aiohttp libs these days and I am not sure if I fully understand it or not yet. So I'd like have some ...
dougj's user avatar
  • 111

15 30 50 per page
1
2 3 4 5
23