File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 33This adaptor exposes a set of Extension functions that allow a more idiomatic Kotlin usage
44
55``` 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" )
2020```
2121
2222## Build
You can’t perform that action at this time.
0 commit comments