On 26/05/2020 02:42, Steven D'Aprano wrote:
On Mon, May 25, 2020 at 11:11:14AM -0000,[email protected]  wrote:

We just need to provide two APIs:
1) 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.

--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/TB6WI5YPTIPPC2MBDIZBQXBUPRQWDQMI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to