Modern concurrency tools including agents, futures, promises, thread pools, supervisors, and more. Inspired by Erlang, Clojure, Scala, Go, Java, JavaScript, and classic concurrency patterns.
This seems to be a mistake in the docs. Looking under the hood at the ScheduledTask class, you can see that Float is perfectly fine and can be passed as an execution interval. This PR changes Integer to Float in the method description to avoid any confusion.
This seems to be a mistake in the docs. Looking under the hood at the
ScheduledTask
class, you can see that Float is perfectly fine and can be passed as an execution interval. This PR changesInteger
toFloat
in the method description to avoid any confusion.https://github.com/ruby-concurrency/concurrent-ruby/blob/e7ff945661a93a2e094b3259f23ccb1b3eea9bcf/lib/concurrent-ruby/concurrent/scheduled_task.rb#L167
I've also checked that it actually works with floats: