官术网_书友最值得收藏!

Reactive Extensions

Reactive Extensions (Rx or ReactiveX) (https://msdn.microsoft.com) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Data sequences can take many forms, such as a stream of data from a file or web service, web services requests, system notifications, or a series of events such as user inputs.

As stated in the preceding definition, these are APIs that allow stream composition using the Observer pattern. It's my duty to introduce you to the Observer pattern before going any further. The following is the definition of this pattern and it's quite intuitive:

The Observer pattern defines a provider (also known as a subject or an observable) and zero, one, or more observers (Subscriber). Observers register with the provider, and whenever a predefined condition, event, or state change occurs, the provider automatically notifies all observers by calling one of their methods. For more information about the Observer pattern, you can refer to this link: https://docs.microsoft.com/en-us/dotnet/standard/events/observer-design-pattern.

Data can flow in a number of forms, such as streams or events. Reactive Extensions lets you convert this dataflow into observables and aids you in programming reactive code.

Rx is implemented in a variety of languages, including Java (RxJava). A full list of implemented languages and more detail on Rx can be found at http://reactivex.io/.

主站蜘蛛池模板: 弥勒县| 水富县| 南阳市| 龙口市| 长海县| 拉孜县| 宁德市| 漾濞| 潢川县| 紫阳县| 辽宁省| 洪江市| 新丰县| 安塞县| 清水河县| 湘潭县| 固安县| 吉林市| 舞阳县| 象山县| 巢湖市| 枞阳县| 建平县| 常熟市| 扬中市| 郑州市| 牙克石市| 兴城市| 磴口县| 陵水| 山阴县| 安图县| 洪江市| 西华县| 婺源县| 永新县| 平舆县| 扎兰屯市| 日土县| 梁山县| 芦溪县|