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
Maybe implementing a higher level timers API could be valuable? It would ensure to start a "parent" reactor, always behave like the second version, and have predictable (eg. not bail out on error) error behavior?
Works as expected. Does nothing without reactor.run. Maybe it just needs documentation and/or being wrapped and error out if not running under a reactor?
The text was updated successfully, but these errors were encountered:
I am looking for the equivalent of
every
in Celluloid. It was suggested toloop
andtask.sleep
, however it doesn't behave the same way.that said, it works if both reactor runs are inside of a reactor
Is the latter the correct way?
Maybe implementing a higher level timers API could be valuable? It would ensure to start a "parent" reactor, always behave like the second version, and have predictable (eg. not bail out on error) error behavior?
I also see
async/lib/async/reactor.rb
Line 84 in 6b9b34e
Works as expected. Does nothing without
reactor.run
. Maybe it just needs documentation and/or being wrapped and error out if not running under a reactor?The text was updated successfully, but these errors were encountered: