You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it's still a "you call it," not an "it calls you" interface: you're supposed to iterate over it, but you can do as much work as you want before you call next(input) again.
To integrate event loops, these timers will need to be delegated to the real event loop as will checking whether stdin is ready.
Specifically, Twisted's reactors, specifically specifically cfreactor and gireactor.
The text was updated successfully, but these errors were encountered:
The Input class is like a reactor:
You can schedule events for the future (timers)
curtsies/curtsies/input.py
Lines 330 to 341 in 307aa87
It uses select()
curtsies/curtsies/input.py
Lines 173 to 180 in 307aa87
But it's still a "you call it," not an "it calls you" interface: you're supposed to iterate over it, but you can do as much work as you want before you call
next(input)
again.To integrate event loops, these timers will need to be delegated to the real event loop as will checking whether stdin is ready.
Specifically, Twisted's reactors, specifically specifically
cfreactor
andgireactor
.The text was updated successfully, but these errors were encountered: