πΎπ The objective is to do an easy-to-access codes snippets collections of important Cats Effect concepts. Cats Effect possesses IO for wrapping & chaining asynchronous codes executions. It has also the concept of Resource for an automatic resources releasing after usage. Semaphore and more well known asynchronous programming patterns are also part of the library.
ππ For a better understanding of each subject please take the time to run the code snippets. They all compile & are runnable β . So do not hesitate to fork this git repository and execute them on your own computer π.
Remark: Some code snippets have multiple possible runs.
π Subject | π Description | πΎ Code snippets |
---|---|---|
IOs | This part focuses on understanding IOs as data structures holding a manageable execution result. |
Introduction |
Parallel | ||
Traversal | ||
Exception | ||
Concurrency | This part focuses on understanding Fibers as easy-to-manage threads with possibility of starting & joining concurrently execution results from IOs . |
Fiber |
Uncancelable | ||
Race | ||
Resource | ||
Coordination | This part focuses on understanding communication patterns between Fibers . |
Ref |
Deferred | ||
Semaphore | ||
CountDownLatch | ||
CyclicBarrier |