ReactiveX 的 Golang 实现 GoRx

码农软件 · 软件分类 · 响应式 Web 框架 · 2019-03-11 21:13:23

软件介绍

ReactiveX的Golang实现版本,非官方实现版。

由于官方的RxGo一直没有进行开发,遂本人在编写rx4rx的时候受到启发,实现了golang版本的Rx库,填补了Rx在golang上的空缺。

该库实现了两种使用模式1、链式编程,2、pipe模式。使用者可以根据自己的喜好随意选择。

使用方式

类似 rxjs 5.0

import "github.com/langhuihui/gorx"
rx.Interval(1000).SkipUntil(rx.Of(1).Delay(3000)).Subscribe(func(x interface{}, dispose func()) {
		fmt.Print(x)
	}, nil, nil)

类似 rxjs 6.0

import . "github.com/langhuihui/gorx/pipe"
Subscribe(func(x interface{}, dispose func()) {
		fmt.Print(x)
	}, nil, nil)(Interval(1000),SkipUntil(Of(1),Delay(3000)))

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

Pragmatic Thinking and Learning

Pragmatic Thinking and Learning

Andy Hunt / The Pragmatic Bookshelf / 2008 / USD 34.95

In this title: together we'll journey together through bits of cognitive and neuroscience, learning and behavioral theory; you'll discover some surprising aspects of how our brains work; and, see how ......一起来看看 《Pragmatic Thinking and Learning》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具