On Mon, May 25, 2020 at 11:11:14AM -0000, redradist@gmail.com 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. In this case, it's not enough to provide two APIs. We need to provide the infrastructure and implementation to make the APIs actually possible. If it was as easy as just stating the interface, it would have been done years ago. But the implementation needs to exist as well. If you still think that this is a small job that justifies the word "just", why don't you implement it and show us how simple it is? An hour or two, and it's done... *wink* -- Steven