1,658 questions
1 vote
0 answers
21 views
How should synchronous FSMs communicate in a task-based embedded system?
I'm building an Arduino project for a drone hangar system. It must be implemented using a task-based architecture and synchronous FSMs (each task has its own FSM, and tasks run in a fixed periodic ...
2 votes
1 answer
62 views
JavaScript - synchronous execution of code
I tried to demonstrate to someone how JavaScript executes code synchronously, and it didn't work the way I expected. So I'm trying to figure out why my little snippet didn't do what I expected it to ...
0 votes
2 answers
87 views
Why uncaughtException handler not working globally?
I'm developing a Express + PostgreSQL app and I want to implement a global error handler system. Now I want to caught all uncaught exceptions from my entire project. Server is running with nodemon. A ...
0 votes
1 answer
31 views
Unparameterized call to FutureRecordMetadata.get() timing out in 60 seconds when Kafka timeout is configured to 25 seconds
I am having trouble understanding how exactly the unparameterized get on Kafka's FutureRecordMetadata class works. I have a method in a service where I produce to a topic and want to return only when ...
0 votes
1 answer
48 views
How to synchronously Fire URI stored in an array
one.tsx function fnOne() { var urlMap = new Map(); urlMap.put ("1", ["https://thetestrequest.com/comments/1", "https://thetestrequest.com/comments/2&...
0 votes
0 answers
79 views
Why is my async code no faster than synchronous?
So I had built a data pipeline which fetches reports from api endpoints, does some basic cleaning transformations and then concatenates the data into a an output dataframe. Originally I used ...
1 vote
1 answer
59 views
Is it safe to dispatch actions in store listener callbacks?
I have a Redux webpage with a complex UI component (a map). The component's visual state and its internal model depend on the current Redux store's state and browser state (viewport resolution, DPI, ...
0 votes
1 answer
77 views
Best way to test vallid links in feed using Swift or Objective-C
I am building a feed with links to multimedia assets. If a link is bad it should not be in the feed as a video that does not play or image that does not load is a poor user experience. The feed is ...
0 votes
0 answers
81 views
Task.Run with and without async delegate [duplicate]
I don't understand clearly difference between almost following Task asynchronous code execution. Only difference is the async keyword as parameter. Example - I think this code inside Task run will ...
0 votes
0 answers
75 views
Fixing issues with my reading settings file synchronously before any page gets loaded
The following code has the class that I use to store and retrieve data from the device's DocumentsDirectory. The asynchronous versions of retrieving and writing files have been tested to work well. ...
-1 votes
2 answers
59 views
Why is this Python code exiting before pyodbc SQL commit is finished
I have some Python code that I am executing from a C# solution. Everything is working well except for this one thing, which makes no sense to me given that Python is supposed to be synchronous by ...
0 votes
0 answers
38 views
Sending requests synchronously within ngrx effect in angular
I have the following effect: public sendData$ = createEffect(() => this.actions$.pipe( ofType(actions.sendData), concatLatestFrom(() => [ this.store.select(selectBike), this.store....
0 votes
1 answer
177 views
Ensuring Synchronous Initialization of Swift Manager Class with Data from API
I'm developing a Swift class as a Manager that needs to fetch initial data from an API during initialization. I want to ensure that the class is fully initialized only after the data has been fetched ...
2 votes
1 answer
202 views
If multiple Python processes write data into InfluxDB, only parts are written
I have multiple Python processes, running on a server (RPI5) by cron, which read data from web API's, and write it then into a common InfluxDB database - on the same bucket. However, some of the data ...
0 votes
1 answer
56 views
How does setTimeout in a focusIn handler resolve before the click handler runs?
I expect DOM event handling to be synchronous, regardless of the internal sequence of events in a browser. For reasons I don't understand the click handler is massively delayed (varying between 30-...