You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/GettingStarted.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ someObservable
235
235
}
236
236
```
237
237
238
-
this will always print:
238
+
This will always print:
239
239
240
240
```
241
241
Event processing started
@@ -246,7 +246,7 @@ Event processing started
246
246
Event processing ended
247
247
```
248
248
249
-
it can never print:
249
+
It can never print:
250
250
251
251
```
252
252
Event processing started
@@ -263,7 +263,7 @@ There is one crucial thing to understand about observables.
263
263
264
264
It is true that `Observable` can generate elements in many ways. Some of them cause side effects and some of them tap into existing running processes like tapping into mouse events, etc.
265
265
266
-
**But if you just call a method that returns an `Observable`, no sequence generation is performed, and there are no side effects. `Observable`is just a definition how the sequence is generated and what parameters are used for element generation. Sequence generation starts when `subscribe` method is called.**
266
+
**However, if you just call a method that returns an `Observable`, no sequence generation is performed and there are no side effects. `Observable` just defines how the sequence is generated and what parameters are used for element generation. Sequence generation starts when `subscribe` method is called.**
267
267
268
268
E.g. Let's say you have a method with similar prototype:
269
269
@@ -284,9 +284,9 @@ let cancel = searchForMe
284
284
285
285
```
286
286
287
-
There are a lot of ways how you can create your own `Observable` sequence. Probably the easiest way is using`create` function.
287
+
There are a lot of ways to create your own `Observable` sequence. The easiest way is probably to use the`create` function.
288
288
289
-
Let's create a function which creates a sequence that returns one element upon subscription. That function is called 'just'.
289
+
Let's write a function that creates a sequence which returns one element upon subscription. That function is called 'just'.
290
290
291
291
*This is the actual implementation*
292
292
@@ -305,7 +305,7 @@ myJust(0)
305
305
})
306
306
```
307
307
308
-
this will print:
308
+
This will print:
309
309
310
310
```
311
311
0
@@ -459,7 +459,7 @@ subscription2.dispose()
459
459
print("Ended ----")
460
460
```
461
461
462
-
this would print:
462
+
This would print:
463
463
464
464
```
465
465
Started ----
@@ -524,7 +524,7 @@ subscription2.dispose()
524
524
print("Ended ----")
525
525
```
526
526
527
-
this will print
527
+
This will print
528
528
529
529
```
530
530
Started ----
@@ -642,7 +642,7 @@ let subscription = myInterval(0.1)
642
642
})
643
643
```
644
644
645
-
and this will print
645
+
This will print:
646
646
647
647
```
648
648
Subscribed
@@ -694,7 +694,7 @@ This isn't something that should be practiced often, and is a bad code smell, bu
694
694
// ....
695
695
```
696
696
697
-
Every time you do this, somebody will probably write this code somewhere
697
+
Every time you do this, somebody will probably write this code somewhere:
698
698
699
699
```swift
700
700
kittens
@@ -704,7 +704,7 @@ Every time you do this, somebody will probably write this code somewhere
0 commit comments