I wonder if there's any way to implement time-slicing in Ruby. e.g. Thread, go do work until 20 milliseconds from now, then pause & yield
TBH you might be able to do something w/ Resque and the OS scheduler, but not at 20ms resolution
-
-
couldn't I just reimplement timeout with Thread.stop instead of Thread.kill? https://github.com/ruby/ruby/blob/trunk/lib/timeout.rb#L75 …
-
er I mean just rescue the ex and call thread.stop?
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
trying to emulate this.