An open API service indexing awesome lists of open source software.

https://github.com/dokwork/fast-reactive-fs2

Fast jvm-only implementation of the reactive streams for fs2.
https://github.com/dokwork/fast-reactive-fs2

fs2 mongodb reactive-streams scala

Last synced: 10 months ago
JSON representation

Fast jvm-only implementation of the reactive streams for fs2.

Awesome Lists containing this project

README

          

# fast-reactive-fs2
[![Build Status](https://travis-ci.com/dokwork/fasti.svg?branch=master)](https://travis-ci.com/dokwork/fasti)
[![Coverage Status](https://coveralls.io/repos/github/dokwork/fast-reactive-fs2/badge.svg?branch=master)](https://coveralls.io/github/dokwork/fast-reactive-fs2?branch=master)
[![Download](https://api.bintray.com/packages/dokwork/maven/fast-reactive-fs2/images/download.svg) ](https://bintray.com/dokwork/maven/fast-reactive-fs2/_latestVersion)

Implementation of the reactive streams for fs2.

This version is not cross-platform, but faster than official module:
```
Benchmark Mode Cnt Score Error Units
ReadOneMillionNumbers.dokworkStreamSubscriber avgt 25 56.017 ± 1.877 ms/op
ReadOneMillionNumbers.fs2StreamSubscriber avgt 25 3222.676 ± 1143.118 ms/op
```

## Installation
`libraryDependencies += "ru.dokwork" %% "fast-reactive-fs2" % "0.1.1"`

## Usage
```scala
val publisher: Publisher[A] = ???
val stream: fs2.Stream[F, A] = StreamSubscriber.subscribe[F, A](publisher)
```