zio / zio-nio   2.0.2

Apache License 2.0 Website GitHub

A small, unopinionated ZIO interface to NIO.

Scala versions: 3.x 2.13 2.12
Scala Native versions: 0.4

ZIO-NIO

Project Stage CI Release Snapshot Discord
Project stage CI Release Artifacts Snapshot Artifacts badge-discord

ZIO interface to Java NIO.

Java NIO is unsafe, and can surprise you a lot with e.g. hiding the actual error in IO operation and giving you only true/false values when IO was successful/not successful. ZIO-NIO on the other hand embraces the full power of ZIO effects, environment, error and resource management to provide type-safe, performant, purely-functional, low-level, and unopinionated wrapping of Java NIO functionality.

ZIO-NIO comes in two flavours:

  • zio.nio.core - a small and unopinionated ZIO interface to NIO that just wraps NIO API in ZIO effects,
  • zio.nio - an opinionated interface with deeper ZIO integration that provides more type and resource safety.

Learn more about ZIO-NIO at:

Background