fixing toAsync by using immediateScheduler instead of timeoutScheduler (which is undefined in this module).