All Questions
Tagged with asynchronous-programming design
9 questions
6
votes
2
answers
529
views
How is async implemented natively?
How is async logic implemented natively without threads? What would be the high level structure of the system?
Is it just a separate OS thread that gets and pushes requests and results in 2 queues?
I ...
1
vote
0
answers
483
views
How to structure your Python code with asynchronous and synchronous parts
I have a Python FastAPI server application which naturally guides you towards the asynchronous paradigm.
For legacy reasons, I have to support two backends, one which is purely synchronous and one ...
-3
votes
1
answer
210
views
How do I make items disappear based on the size of it's members?
Consider a list of items (take a list of voice channels) where each item has these attributes
System::vc: List of voice channels.
System::on_join(member, before, after): On the event when a member ...
-1
votes
2
answers
141
views
How to GET multiple values from a database while keeping the request asynchronous?
This is a very small-scale project that I am coding myself, so I am able to build all of the resources however I like. I've done research on this site for help on this issue and can't find anything ...
6
votes
2
answers
4k
views
Is it good approach to await async tasks in object destructor?
I'm currently working on class with some async tasks under the hood. In fact I need to delegate few tasks to asynchronous execution and be sure that all of them are finished before class was destroyed,...
3
votes
3
answers
1k
views
Is there a pattern for a chain of asynchronous calls, followed by a cleanup?
I have two asynchronous tasks that need to get completed - say they're "make a pie" (make) and "bake a pie" (bake). I also need to cleanup after everything's done - "clean the kitchen" (cleanup). bake ...
5
votes
2
answers
330
views
Design of asynchronous component
I'm trying to design an asynchronous component. Requirements on this component are :
Component might receive events at any point in time
Component might start a long-running operation and wait for its ...
4
votes
1
answer
143
views
Building objects from multiple async server queries
I'm building a system that uses objects that are built using multiple Async queries to a remote server (Firebase) and queries to a local DB.
How should I design a module to generate these objects?
...
0
votes
1
answer
372
views
Async properties in interfaces to cater for the possibility of expensive first-time evaluation: Is this a good idea?
First of all, sorry if this post is too long. I'll start with the…
Short version:
Is it generally advisable or a good idea to design an interface property as asynchronous simply because we cannot be ...