Asynchronous Programming for Scala and Scala.js.
Monix is a high-performance Scala / Scala.js library for composing asynchronous, event-based programs.
It started as a proper implementation of ReactiveX, with stronger functional programming influences and designed from the ground up for back-pressure and made to cleanly interact with Scala’s standard library, compatible out-of-the-box with the Reactive Streams protocol. It then expanded to include abstractions for suspending side effects and for resource handling, being one of the parents and implementors of cats-effect.
A Typelevel project, Monix proudly exemplifies pure, typeful, functional programming in Scala, while making no compromise on performance.
- exposes the kick-ass
Coevaldata types, along with all the support they need
- modular, only use what you need
- designed for true asynchronicity, running on both the JVM and Scala.js
- really good test coverage, code quality and API documentation as a primary project policy
Download and Usage
The packages are published on Maven Central.
- 3.x release (latest):
3.2.1(download source archive)
- 2.x release (older):
2.3.3(download source archive)
In SBT for the latest 3.x release that integrates with
Typelevel Cats out of the box
%%% for Scala.js):
libraryDependencies += "io.monix" %% "monix" % "3.2.1"
Or for the older
libraryDependencies += "io.monix" %% "monix" % "2.3.3"
Monix is modular by design, so you can have an à la carte experience, the project being divided in multiple sub-projects.
See Usage in SBT and Maven for more details.
Documentation and tutorials:
Relevant links to dependencies:
YourKit supports the Monix project with its full-featured Java Profiler. YourKit, LLC is the creator YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.
Development of Monix has been initiated by Eloquentix engineers, with Monix being introduced at E.ON Connecting Energies, powering the next generation energy grid solutions.
Here’s a (non-exhaustive) list of companies that use Monix in production. Don’t see yours? You can add it in a PR!
Copyright (c) 2014-2020 by The Monix Project Developers. Some rights reserved.