Scala wrapper for reactor-core

A Scala wrapper for reactor-core so that the code can be fluently used in Scala

Лицензия

Лицензия

Категории

Категории

Scala Языки программирования React Взаимодействие с пользователем Веб-фреймворки Reactor Контейнер Микросервисы Reactive libraries
Группа

Группа

com.github.sinwe
Идентификатор

Идентификатор

reactor-core-scala
Последняя версия

Последняя версия

0.2.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Scala wrapper for reactor-core
A Scala wrapper for reactor-core so that the code can be fluently used in Scala
Ссылка на сайт

Ссылка на сайт

https://sinwe.github.io/reactor-core-scala/
Система контроля версий

Система контроля версий

https://github.com/sinwe/reactor-core-scala

Скачать reactor-core-scala

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.sinwe/reactor-core-scala/ -->
<dependency>
    <groupId>com.github.sinwe</groupId>
    <artifactId>reactor-core-scala</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.sinwe/reactor-core-scala/
implementation 'com.github.sinwe:reactor-core-scala:0.2.2'
// https://jarcasting.com/artifacts/com.github.sinwe/reactor-core-scala/
implementation ("com.github.sinwe:reactor-core-scala:0.2.2")
'com.github.sinwe:reactor-core-scala:jar:0.2.2'
<dependency org="com.github.sinwe" name="reactor-core-scala" rev="0.2.2">
  <artifact name="reactor-core-scala" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.sinwe', module='reactor-core-scala', version='0.2.2')
)
libraryDependencies += "com.github.sinwe" % "reactor-core-scala" % "0.2.2"
[com.github.sinwe/reactor-core-scala "0.2.2"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.scala-lang : scala-library jar 2.11.8
io.projectreactor : reactor-core jar 3.0.5.RELEASE
com.google.code.findbugs : jsr305 jar 3.0.1

test (3)

Идентификатор библиотеки Тип Версия
org.scalatest : scalatest_2.11 jar 3.0.1
io.projectreactor.addons : reactor-test jar 3.0.5.RELEASE
org.pegdown : pegdown jar 1.6.0

Модули Проекта

Данный проект не имеет модулей.

Reactor Core Scala

This project has a new home. It is now hosted at https://github.com/reactor/reactor-scala-extensions

Join the chat at https://gitter.im/reactor/reactor Reactor Core Scala Travis CI codecov Dependencies

This project is a Scala wrapper for reactor-core.

This project was created after I can't find any Scala code for reactor-core project. Using reactor-core project as it is in scala code will look ugly because a lot of methods use Java 8 lambda which is not compatible with Scala lambda. This will force Scala code to use anonymous class which turns ugly.

So instead of

val mono = Mono.just(1)
               .map(new java.util.function.Function[Int, String] {
                   def apply(t: Int): String = t.toString
               })

it becomes

val mono = Mono.just(1).map(_.toString)

Getting it

It is still in preliminary stage and requires a lot of refinement. No release has been made so far. Those who wanted to try, can get the SNAPSHOT version from snapshot repository as below:

With Gradle:

repositories {
    //maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
    mavenCentral()
}

dependencies {
    //compile "com.github.sinwe:reactor-core-scala:0.2.3-SNAPSHOT
    compile "com.github.sinwe:reactor-core-scala:0.2.2
}

With Maven:

<!-- To get latest SNAPSHOT version from Sonatype
<repositories>
    <repository>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <id>ossSonatypeSnapshot</id>
        <name>OSS Sonatype Snapshots</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        <layout>default</layout>
    </repository>
 </repositories>

<dependency>
    <groupId>com.github.sinwe</groupId>
    <artifactId>reactor-core-scala</artifactId>
    <version>0.2.3-SNAPSHOT</version>
</dependency>
-->
<dependency>
    <groupId>com.github.sinwe</groupId>
    <artifactId>reactor-core-scala</artifactId>
    <version>0.2.2</version>
</dependency>

Contributing

Contributions are welcome. Simply fork this project, make some modification, push and create a pull request.

Версии библиотеки

Версия
0.2.2
0.1.9
0.1.8