May 2022
Intermediate to advanced
356 pages
6h 45m
English
In some scenarios, a program might need to handle the processing of multiple chunks of work, such as summing the number of lines in a series of files. This is a perfect example of the type of problem that Concurrency can help to solve by allowing the program to execute chunks of work while waiting on others. In this chapter, we will learn how concurrency works in Crystal and cover the following topics:
By the end of this chapter, you should be able to understand the differences between concurrency and parallelism, how to use fibers to handle multiple concurrent tasks, and how to use channels to ...
Read now
Unlock full access