The marble diagram describes when things are emitted, the list is a mapping that describes what is emitted for a given index (starting at 1). If you use a mapping of type List<T> you get an Observable<T>. Alternatively you can pass a lambda.
In this case, the observable
wait 30 ms,
produce "2" (first element of the list)
wait 45ms,
produce "9" (third element of the list),
wait 15ms,
complete
The marble diagram describes when things are emitted, the list is a mapping that describes what is emitted for a given index (starting at 1). If you use a mapping of type
List<T>
you get anObservable<T>
. Alternatively you can pass a lambda.In this case, the observable
wait 30 ms, produce "2" (first element of the list) wait 45ms, produce "9" (third element of the list), wait 15ms, complete
Inspired by https://github.com/ReactiveX/rxjs/blob/master/doc/writing-marble-tests.md
API: instable Bugs: a lot Missing features: a lot