简体   繁体   English

C#5.0 async / await功能和Rx - Reactive Extensions

[英]C# 5.0 async/await feature and Rx - Reactive Extensions

I am wondering what do the new C# 5.0 asynchronous features mean for Rx - Reactive Extensions? 我想知道新的C#5.0异步功能对于Rx - Reactive Extensions意味着什么? It seems to be not a replacement but they seem to overlap - Task and IObservable . 它似乎不是替代品,但它们似乎重叠 - TaskIObservable

Check also: TPL Dataflow Overview about TDF and Rx: 另请参阅 :关于TDF和Rx的TPL数据流概述

Astute readers may notice some similarities between TPL Dataflow and Reactive Extensions (Rx), currently available as a download from the DevLabs prototypes site. 精明的读者可能会注意到TPL Dataflow和Reactive Extensions(Rx)之间的一些相似之处,目前可从DevLabs原型网站下载。 Rx is predominantly focused on coordination and composition of event streams with a LINQ-based API, providing a rich set of combinators for manipulating IObservables of data. Rx主要关注基于LINQ的API的事件流的协调和组合,提供了一组丰富的组合器来操作IObservable数据。 In contrast, TPL Dataflow is focused on providing building blocks for message passing and parallelizing CPU- and I/O-intensive applications with high-throughput and low-latency, while also providing developers explicit control over how data is buffered and moves about the system. 相比之下,TPL Dataflow专注于为消息传递提供构建块,并以高吞吐量和低延迟并行化CPU和I / O密集型应用程序,同时还为开发人员提供对数据缓冲方式和系统移动的明确控制。 As such, Rx and TPL Dataflow, while potentially viewed as similar at a 30,000 foot level, address distinct needs. 因此,Rx和TPL Dataflow虽然可能在30,000英尺的水平上被视为相似,但它可以满足不同的需求。 Even so, TPL Dataflow and Rx provide a better together story. 即便如此,TPL Dataflow和Rx提供了更好的合作故事。

Jeff在Rx论坛上写道,Rx仍将用于协调多个事件驱动的任务,Rx发布了一个包含IAsyncEnumerable的新版本,以便在Rx中使用新的异步功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM