#zio

[ follow ]
#scala
Alvinalexander
1 month ago
Scala

How to use ZIO 2 in the Ammonite REPL

ZIO can be added into the Ammonite REPL using import statements for both ZIO and ZIO Worksheet libraries. [ more ]
Alvinalexander
1 month ago
JavaScript

A ZIO ZLayer logging example (with Scala-CLI)

Demonstrates enabling logging in a ZIO application using ZLayer. [ more ]
Alvinalexander
2 months ago
Scala

ZIO 2: Using Either with ZIO in a Scala for-expression

Use ZIO in Scala for-expressions with Either to manage errors effectively. [ more ]
Alvinalexander
2 months ago
Data science

ZIO 2: STDOUT and STDERR console output with foldZIO, success, failure

Using ZIO in Scala to handle success and failure cases with foldZIO function for printing information to the console. [ more ]
Alvinalexander
2 months ago
Scala

ZIO 2: How to read a file and write its output to the console

Reading files and processing output using ZIO 2 in Scala. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO.attempt: examples and documentation

Wrap synchronous code that can throw exceptions in ZIO.attempt for error handling. [ more ]
Alvinalexander
1 month ago
Scala

How to use ZIO 2 in the Ammonite REPL

ZIO can be added into the Ammonite REPL using import statements for both ZIO and ZIO Worksheet libraries. [ more ]
Alvinalexander
1 month ago
JavaScript

A ZIO ZLayer logging example (with Scala-CLI)

Demonstrates enabling logging in a ZIO application using ZLayer. [ more ]
Alvinalexander
2 months ago
Scala

ZIO 2: Using Either with ZIO in a Scala for-expression

Use ZIO in Scala for-expressions with Either to manage errors effectively. [ more ]
Alvinalexander
2 months ago
Data science

ZIO 2: STDOUT and STDERR console output with foldZIO, success, failure

Using ZIO in Scala to handle success and failure cases with foldZIO function for printing information to the console. [ more ]
Alvinalexander
2 months ago
Scala

ZIO 2: How to read a file and write its output to the console

Reading files and processing output using ZIO 2 in Scala. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO.attempt: examples and documentation

Wrap synchronous code that can throw exceptions in ZIO.attempt for error handling. [ more ]
morescala
#error-handling
Alvinalexander
2 months ago
JavaScript

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered. [ more ]
Alvinalexander
2 months ago
JavaScript

ZIO 2: Solution to "ZIO.cond not working" (code not running)

Understanding how ZIO.cond works is crucial for proper error handling in ZIO applications. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO 2: Passing a ZLayer value to an application, getting a return value, and handling possible errors

Demonstrates passing a value to ZIO application using ZLayer, handling errors with foldZIO, and different ways to write run value. [ more ]
Alvinalexander
4 weeks ago
JavaScript

ZIO 2 Example: Print values after a random delay (and the ZIO error channel)

ZIO example highlights random delays and error handling. [ more ]
Alvinalexander
2 months ago
JavaScript

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered. [ more ]
Alvinalexander
2 months ago
JavaScript

ZIO 2: Solution to "ZIO.cond not working" (code not running)

Understanding how ZIO.cond works is crucial for proper error handling in ZIO applications. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO 2: Passing a ZLayer value to an application, getting a return value, and handling possible errors

Demonstrates passing a value to ZIO application using ZLayer, handling errors with foldZIO, and different ways to write run value. [ more ]
Alvinalexander
4 weeks ago
JavaScript

ZIO 2 Example: Print values after a random delay (and the ZIO error channel)

ZIO example highlights random delays and error handling. [ more ]
moreerror-handling
Alvinalexander
3 months ago
Scala

ZIO, ZIO HTTP Server, and Scala-Cli

The article provides a simple ZIO HTTP server application example.
Instructions on setting up the ZIO dependencies and running the application were shared. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO/ZLayer FAQ: How to use a Typesafe Config HOCON properties file with ZIO

Use hand-coding approach with ZIO for reading Typesafe Config HOCON files. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO/ZLayer FAQ: How do I create a very simple ZLayer with ZIO 2?

ZIO ZLayer provides dependency injection, modularity, resource management, testability, and type safety in ZIO 2 applications. [ more ]
Alvinalexander
7 months ago
JavaScript

A ZIO 2 collectAllPar example using Scala 3

ZIO collectAllPar method example with for expression. [ more ]
Alvinalexander
3 years ago
Scala

A ZIO cheatsheet

Creating a ZIO cheat sheet while learning ZIO and reading Zionomicon is beneficial. [ more ]
[ Load more ]