Re: async/await in Euphoria
- Posted by jimcbrown (admin) Oct 28, 2019
- 1320 views
ghaberek said...
euphoric said...
Is Euphoria's next version going to have threads and/or async/await?
No. This kind of feature requires a pretty big change to the back end. Anyone's welcome to explore how it might be implemented and report back though.
-Greg
I made an experimental version some years ago. It had true multithreading, but it basically gave each thread a copy of its own runtime to avoid non-threadsafe access within the runtime library itself. It has some serious limitations (being limited to *nix for example), but you can still view it at https://github.com/OpenEuphoria/euphoria/tree/dlmopen-multithreaded
(And no, it's definitely not ready to merge into the mainline. Not even close.)