Den 2018-02-09 kl. 12:48, skrev Niklas Keller:
We have started building a PoC library on top of Fibers, see https://github.com/amphp/green-thread/blob/7bd3470e7986169372d5e9c39500f3652091b512/src/functions.php . We'd like to avoid the additional `await()` function and rather directly couple Fibers with promises in the PHP core. Using `await` (the keyword) instead of `Fiber::yield()` feels way better and avoids the need for any wrapping libraries for what should be a core feature. `async` can be added to create a new Fiber and Fiber can implement Promise.
Regarding these potential new keywords await & async. Any need to look into how Hacklang uses these keywords? Could there be portability aspects on the functionality in itself? Regards //Björn Larsson -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php