An example implementation of Redux-Observable's timer
observable.
const timer = (
timeToWait,
) => (
Observable
.create(observer => (
setTimeout(
() => {
observer.next(0)
observer.complete()
},
timeToWait,
)
)
)