Open garyvdm opened 3 years ago
Hello,
rx_observer is not an annotation (maybe i should do one by the way).
I havent my laptop, but something like this seem to me more appropriate:
observer = rx_observer(on_next= my_observer) source = rx_range(0, 5) debounced = rx_debounce(source, timedelta(seconds=1)) await debounced.subscribe(observer) await curio.sleep(6)
It seems to be an issue when running with the stdlib asyncio eventloop. When I run with curio it works. Not sure is there is something that can be done to make this work. I will investigate further.
P.s rx_observer
perfectly as a decorator if you only have an on_next
method.
Hello, this module use curio as underlaying implementation, I ever read few doc about the use of std asyncio and curio but never yet tested.
This is more a question than a bug.
I can't workout how to use
rx_debounce
. I think this is the closest I got with all my tries: