Re: [RFC] Fiber support (again)
| From: | Björn Larsson | Date: | Fri, 09 Feb 2018 20:53:04 +0000 |
| Subject: | Re: [RFC] Fiber support (again) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101817@lists.php.net to get a copy of this message | ||
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 additionalAny need to look into how Hacklang uses these keywords? Could there be portability aspects on the functionality in itself? Regards //Björn Larssonawait()function and rather directly couple Fibers with promises in the PHP core. Usingawait(the keyword) instead ofFiber::yield()feels way better and avoids the need for any wrapping libraries for what should be a core feature.asynccan be added to create a new Fiber and Fiber can implement Promise. Regarding these potential new keywords await & async.