File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 3
3
This adaptor exposes a set of Extension functions that allow a more idiomatic Kotlin usage
4
4
5
5
``` kotlin
6
- observable<String > { subscriber ->
7
- subscriber.onNext(" H" )
8
- subscriber.onNext(" e" )
9
- subscriber.onNext(" l" )
10
- subscriber.onNext(" " )
11
- subscriber.onNext(" l" )
12
- subscriber.onNext(" o" )
13
- subscriber.onCompleted()
14
- }.filter { it.isNotEmpty() }
15
- .fold (StringBuilder ()) { sb, e -> sb.append(e) }
16
- .map { it.toString() }
17
- .subscribe { a.received(it) }
18
-
19
- verify(a, times(1 )).received(" Hello" )
6
+ observable<String > { subscriber ->
7
+ subscriber.onNext(" H" )
8
+ subscriber.onNext(" e" )
9
+ subscriber.onNext(" l" )
10
+ subscriber.onNext(" " )
11
+ subscriber.onNext(" l" )
12
+ subscriber.onNext(" o" )
13
+ subscriber.onCompleted()
14
+ }.filter { it.isNotEmpty() }
15
+ .fold (StringBuilder ()) { sb, e -> sb.append(e) }
16
+ .map { it.toString() }
17
+ .subscribe { a.received(it) }
18
+
19
+ verify(a, times(1 )).received(" Hello" )
20
20
```
21
21
22
22
## Build
You can’t perform that action at this time.
0 commit comments