An example cats-effect application built from the ce3.g8 template.
Cats-playground consists of multiple run modes which can be configured which to run. Check out application.conf
. The config run-mode defines which mode to run.
sbt run
The project includes following playground runners
Runner | Task | Using |
---|---|---|
CombinedJsonRunner | Streams (fs2) multiple JSON files, parses and combines them |
|
CsvToJsonRunner | Streams (fs2) multiple CSV files, parses them and writes in to multiple JSON files |
|
EvalRunner | Runs Evals as Fibers |
|
ForkRunner | Forks multiple Fibers with artificial wait time and shares atomic state across them |
|
GenerateCsvRunner | Generates multiple CSV files and simulates errors |
|
PiMCRunner | Simulates Pi estimation from Monte-Carlo method concurrently |
|
RaceRunner | Generates racing conditions of multiple threads which can also throw exceptions |
|
SemaphoreRunner | Endlessly runs scheduler which only runs an execution when resources are available (and permitted) |
|
AttemptRunner | Runs chains of operations which transforms data with functional error handling |
|
IOBoundRunner | Runs IO-blocking task and CPU-bound task in parallel |
|
MIT