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.
- Host: GitHub
- URL: https://github.com/dokwork/fast-reactive-fs2
- Owner: dokwork
- License: mit
- Created: 2020-02-08T06:46:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-24T08:12:10.000Z (about 5 years ago)
- Last Synced: 2025-03-16T02:15:11.141Z (10 months ago)
- Topics: fs2, mongodb, reactive-streams, scala
- Language: Scala
- Homepage:
- Size: 18.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fast-reactive-fs2
[](https://travis-ci.com/dokwork/fasti)
[](https://coveralls.io/github/dokwork/fast-reactive-fs2?branch=master)
[ ](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)
```