I'm attempting to do some async work on n items, and wait for all items to complete before proceeding.
What do I put in the whatfunc? location to have subscribe's onComplete fire once?
Observable.range(0, n)
.<whatfunc?>({ s -> doAsyncWorkThatReturnsObservable(s) })
.(other?)
.subscribe({println "All complete"})
Thanks