From 17fd0a5ec07a3dda8d179b9b2a5657055d9d0f22 Mon Sep 17 00:00:00 2001 From: Ravi Undupitiya Date: Tue, 19 Jul 2016 11:50:34 +0530 Subject: [PATCH 1/3] Typo :s/asychronous/asynchronous/g --- Part 2 - Sequence Basics/1. Creating a sequence.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Part 2 - Sequence Basics/1. Creating a sequence.md b/Part 2 - Sequence Basics/1. Creating a sequence.md index 3b54222..8570250 100644 --- a/Part 2 - Sequence Basics/1. Creating a sequence.md +++ b/Part 2 - Sequence Basics/1. Creating a sequence.md @@ -226,7 +226,7 @@ The example above waits 2 seconds, then starts counting every 1 second. ## Transitioning into Observable -There are well established tools for dealing with sequences, collections and asychronous events, which may not be directly compatible with Rx. Here we will discuss ways to turn their output into input for your Rx code. +There are well established tools for dealing with sequences, collections and asynchronous events, which may not be directly compatible with Rx. Here we will discuss ways to turn their output into input for your Rx code. If you are using an asynchronous tool that uses event handlers, like JavaFX, you can use `Observable.create` to turn the streams into an observable From 9c449ae032a389bf1ea34a5128f200961580331c Mon Sep 17 00:00:00 2001 From: Ravi Undupitiya Date: Tue, 19 Jul 2016 12:02:12 +0530 Subject: [PATCH 2/3] Fixing typo :s/like to them/like them to return/g --- Part 2 - Sequence Basics/1. Creating a sequence.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Part 2 - Sequence Basics/1. Creating a sequence.md b/Part 2 - Sequence Basics/1. Creating a sequence.md index 8570250..211d433 100644 --- a/Part 2 - Sequence Basics/1. Creating a sequence.md +++ b/Part 2 - Sequence Basics/1. Creating a sequence.md @@ -246,7 +246,7 @@ Depending on what the event is, the event type (here `ActionEvent`) may be meani Much like most of the functions we've seen so far, you can turn any kind of input into an Rx observable with `create`. There are several shorthands for converting common types of input. -`Future`s are part of the Java framework and you may come across them while using frameworks that use concurrency. They are a less powerful concept for concurrency than Rx, since they only return one value. Naturally, you'd like to them into observables. +`Future`s are part of the Java framework and you may come across them while using frameworks that use concurrency. They are a less powerful concept for concurrency than Rx, since they only return one value. Naturally, you'd like them to return into observables. ```java FutureTask f = new FutureTask(() -> { From 572d3de858936841666add30a87784e160da5893 Mon Sep 17 00:00:00 2001 From: Ravi Undupitiya Date: Tue, 19 Jul 2016 12:12:21 +0530 Subject: [PATCH 3/3] Typo :s/introduce to/introduce the/g --- Part 2 - Sequence Basics/2. Reducing a sequence.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Part 2 - Sequence Basics/2. Reducing a sequence.md b/Part 2 - Sequence Basics/2. Reducing a sequence.md index 508fa9f..36bcb06 100644 --- a/Part 2 - Sequence Basics/2. Reducing a sequence.md +++ b/Part 2 - Sequence Basics/2. Reducing a sequence.md @@ -6,7 +6,7 @@ Most of the operators here will be familiar to anyone who has worked with Java's ### Marble diagrams -This is an appropriate time to introduce to concept of marble diagrams. It is a popular way of explaining the operators in Rx, because of their intuitive and graphical nature. They are present a lot in the documentation of RxJava and it only makes sense that we take advantage of their explanatory nature. The format is mostly self-explanatory: time flows left to right, shapes represent values, a slash is an onCompletion, an X is an error. The operator is applied to the top sequence and the result is the sequence below. +This is an appropriate time to introduce the concept of marble diagrams. It is a popular way of explaining the operators in Rx, because of their intuitive and graphical nature. They are present a lot in the documentation of RxJava and it only makes sense that we take advantage of their explanatory nature. The format is mostly self-explanatory: time flows left to right, shapes represent values, a slash is an onCompletion, an X is an error. The operator is applied to the top sequence and the result is the sequence below. ![](https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/legend.png)