Hey guys, I am facing the following issue. I have two main processes:
- one which updates the state of some of the objects in a fixed interval (e.g. every 100 milliseconds),
- the other one which uses this state to perform some action.
My current implementation uses the 1) as an
@async process, while 2) is the main process. This is fine in most cases, however in the case that some computation in 2) is taking too long (e.g. some matrix multiplication), I might miss a full update cycle in 1), which is harmful for my application.
My original code was in Python, and there it was resolved using
threading.Thread(), which would do these updates in a completely separate thread. Reading up on documentation, I cannot find a simple way of achieving this in Julia. Is this currently possible? If yes, how? If not, is it planned?