Overview of RxJava 4.x features
4.xRxJava 4.x is a modern implementation with the following characteristics:
- Native Java 26 implementation: Optimized for modern Java environments.
- Zero runtime dependencies: No 3rd party libraries are required at runtime.
- Module support: Maintains JPMS and OSGi support.
- Reactive Streams integration: Built on
java.util.concurrent.Flowand compatible with the Reactive Streams Test Compatibility Kit. - Virtual Thread support: Includes specialized methods like
virtualCreate(),virtualTransform(), andSchedulers.virtual(). - Streamable<T>: A new feature (in progress) built around Virtual Threads and virtual blocking, providing a pattern similar to
IAsyncEnumerablefor Java. - Resource Management: Uses the Java Cleaner API to detect resource leaks and perform adaptive cleanups.
- Android Compatibility: Depends on the specific API level and available desugaring.