Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [asynchronous]

Asynchronous programming is simply allowing some portions of code to be executed on separate threads. It makes your applications perform better, be more responsive, and use the resources of the system they are running on to the fullest extent.

Filter by
Sorted by
Tagged with
2 votes
1 answer
73 views

My first attempt to insert and retrieve data from a MySQL database using the boost::mysql library

About the Project This was a go/no go prototype for a project that would store the data a combined personal planner software with project planning software in a relational database. It was also a ...
pacmaninbw's user avatar
  • 26.1k
1 vote
0 answers
61 views

Inserting and retrieving data MySql Database access in C++ using Boost::ASIO and Boost::MySQL

About the Project This is a unit test and a prototype for the database portion of a project that would store the data a combined personal planner software with project planning software in a ...
pacmaninbw's user avatar
  • 26.1k
3 votes
1 answer
49 views

Kotlin coroutines in Jetpack Compose: Dispatcher-usage

I have implemented a timer in Jetpack Compose. It counts down a given amount of seconds. The remaining seconds are displayed. Moreover the past and remaining seconds are displayed as a circular graph. ...
michael.zech's user avatar
  • 5,044
3 votes
1 answer
139 views

Wait for results/failure of an unreliable async operation

Abstract Problem The basic problem is that of producer/consumer. Wait for an async Producer to [produce an item] or [fail], together with a timeout on the consumer side. Using Java's ...
JayC667's user avatar
  • 131
4 votes
1 answer
98 views

Implementation of semantically safe interface for `std::future::then`

Disclaimer: I am not a fan of the then concept, specifically as a mutating non-static member function. As of now, it has only been introduced as part of the ...
Sergey Kolesnik's user avatar
2 votes
1 answer
98 views

Optimizing domain requests and filtering results with Polars

I need to query a large number of domains stored in a CSV file and save the associated metadata from the responses. My final goal is to generate a CSV file after applying filters to this metadata. The ...
Lo Bellin's user avatar
  • 121
5 votes
1 answer
266 views

Executing method with time limit restrictions

I've created a method which allows to run tasks where results might not be fully computed but still are considered valid. ExecuteFor method can be used if you have ...
FlameHorizon's user avatar
3 votes
1 answer
321 views

Using async websockets in Rust with tokio, rmp-serde and varint encoding

This is my first attempt at a real life app in Rust. I would mostly like to know if I am writing idiomatic Rust code, coming from Java and Python. I'll appreciate any pointers to improvements, though. ...
8192K's user avatar
  • 131
1 vote
0 answers
106 views

Debounced inotify watcher in rust

Here is a tiny (cli) tool to run a script with the state of any of a set of watched files when one of them is opened or closed. It applies basic debouncing to handle bursty access. It was written to ...
2e0byo's user avatar
  • 321
3 votes
1 answer
557 views

C++ Readers-Writer Lock using Asio's Strands

The locking mechanism is implemented in the class RW_Lock. The saved_async_completion_handler structure is used in ...
DeltA's user avatar
  • 133
7 votes
1 answer
1k views

C++: algorithm that uses fixed-size buffer of data that are produced in stream, faster than the algorithm speed

I try to implement this scenario with a producer/consumer multithread pattern and I'd like to optimize synchronization and memory model directive used. This code originates from a SO question and its ...
Oersted's user avatar
  • 337
3 votes
1 answer
107 views

Single worker, multiple async callers in different threads

My use case is this: There is a long running process that I want to ensure is only ever running at most only a single time. Multiple consumers from different threads may wait on the calculation. If ...
Aviad P.'s user avatar
  • 133
5 votes
2 answers
206 views

Get files downloaded asynchronously after double clicking on list item (C++)

The problem I am trying to solve as an exercise is as follows: I have a UI running in the main thread, specifically a list view with many items. Each item represents a file that the user can download....
M. Saintourens's user avatar
2 votes
2 answers
578 views

Code for asynchronous data stream processing with multistage pipelines

I am trying to write some code for processing streams of asynchronous data from multiple sources (Producer Nodes), process them ...
Haaput's user avatar
  • 23
4 votes
1 answer
1k views

Asynchronous file writer : queue, mutex, condition variable

As we know, it is better to write to a disk in a separate thread because the bottleneck may be the disk, which is slower than the CPU (at the condition only one thread writes to the disk). So I have ...
rafoo's user avatar
  • 335

15 30 50 per page
1
2 3 4 5
34
Morty Proxy This is a proxified and sanitized view of the page, visit original site.