January 2024
Intermediate to advanced
718 pages
20h 15m
English
In this chapter, we’ve seen both Ruby’s simple I/O library, implemented as a series of methods in the Kernel module, and the more complicated I/O methods in the class IO and its children. We’ve also seen how to read and write data.
A common problem with I/O is that it’s slow and blocks programs. A common workaround is to use threading to allow the program to do multiple things at once. Let’s take a look at some of Ruby’s threading options.
Read now
Unlock full access