On 26/05/2020 02:42, Steven D'Aprano wrote:
On Mon, May 25, 2020 at 11:11:14AM -0000,firstname.lastname@example.org wrote:
We just need to provide two APIs:
- Synchronized: `run`, `run_string`, that will wait until thread
notify with setting `atomic variable` in true that it finished 2) Asynchronized (based on async): `run_async`, `run_string_async`, event_loop will wait on `atomic variable` reading it periodically
Whenever somebody says "we just need", the word "just" can hide a huge amount of work.
Oh dear Lord yes! As a consultant programmer, I am forever pointing out to clients that the answer to any question beginning "Can you just...?" is "No." It is never "just". Never.