RX框架是Reactive Framework (Rx) ,它是一个异步通知的框架,有点类似观察者模式,只不过它是异步的,不会因为监听请求而阻塞通道
Why use Rx?
One of the advantages of using Rx with the observer pattern is that publishers in Rx run asynchronously, so that program execution does not get blocked while the publisher is busy retrieving data. Instead, callbacks are used to notify subscribers when data is available. Callbacks are also used to inform subscribers if there is an error and when the sequence has ended. This avoids the situation where subscribers are continuing to observe events that have either finished or faulted. Rx also facilitates the use of Linq for filtering, grouping and composing data and there are methods available for testing as well as carrying out time-related processing such as buffering and throttling.
Wiki地址:http://rxwiki.wikidot.com/start
Using Rx
This section includes topics that explain how you use Rx to create and subscribe to sequences, bridge existing .NET events and existing asynchronous patterns, as well as using schedulers. It also describes more advanced tasks such as testing and debugging an observable sequence, as well as implementing your own operators.
In This Section
Reference
Rx框架,即Reactive Framework,是一种异步通知机制,类似观察者模式但避免阻塞。它利用回调通知订阅者数据可用、错误和序列结束,支持Linq进行数据处理,并提供测试和时间相关操作。本文将介绍如何使用Rx创建、订阅序列,桥接.NET事件和异步模式,以及调度、测试和实现自定义操作符。
581

被折叠的 条评论
为什么被折叠?



