Rx 的 Java 实现 RxJava

码农软件 · 软件分类 · 脚本编程语言 · 2019-03-04 22:59:16

软件介绍

.Net 响应式编程框架 Rx 的 Java 版本开源实现,另外还有 Groovy, Clojure, Scala 和 JRuby 版本的实现。

RxJava 是 JVM 的 Reactive 扩展,也是一个在 Java VM 上使用可观测的序列来组成异步的、基于事件的程序的库。

Maven

<dependency>
    <groupId>io.reactivex</groupId>
    <artifactId>rxjava</artifactId>
    <version>1.0.10</version>
</dependency>

示例代码:

public static void hello(String... names) {
    Observable.from(names).subscribe(new Action1<String>() {

        @Override
        public void call(String s) {
            System.out.println("Hello " + s + "!");
        }

    });
}

本文地址:https://www.codercto.com/soft/d/645.html

Distributed Algorithms

Distributed Algorithms

Wan Fokkink / The MIT Press / 2013-12-6 / USD 40.00

This book offers students and researchers a guide to distributed algorithms that emphasizes examples and exercises rather than the intricacies of mathematical models. It avoids mathematical argumentat......一起来看看 《Distributed Algorithms》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

随机密码生成器
随机密码生成器

多种字符组合密码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器