2 ms·
IIRC ruby has first class continuations, so it doesn't have to deal with any async/await nonsense.
by gpderetta 5y ago
IIRC ruby has first class continuations, so it doesn't have to deal with any async/await nonsense.
- brunosutic 5y agoThat's right - Async Ruby uses fibers (stackful coroutines) as a concurrency primitive. There's a lot to say about this, but the end result is that we get to write simple synchronous code and it can run asynchronously.
- g8oz 5y agoN00b question: would the fibers being introduced in PHP 8.1 enable the same functionality in that language? https://php.watch/versions/8.1/fibers https://php.watch/versions/8.1/fibers