diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-18 11:54:00 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-18 13:08:22 -0700 |
commit | 983b743c8c8695c0235d6a3a9fe91a7a759cf0cb (patch) | |
tree | 0364cdab58bcd1c273770b45a903df952ab0cc5c /actioncable/lib/action_cable/server | |
parent | 811c532351c99a01bc6521e7a2ff8636c003c235 (diff) | |
download | rails-983b743c8c8695c0235d6a3a9fe91a7a759cf0cb.tar.gz rails-983b743c8c8695c0235d6a3a9fe91a7a759cf0cb.tar.bz2 rails-983b743c8c8695c0235d6a3a9fe91a7a759cf0cb.zip |
Cable: Periodic timers refresh
* Rewrite docs
* Support blocks in addition to method names and Proc args
* Check for valid arguments
* Convert `periodically :method_name` to Proc callbacks
* Drop periodic runner methods from the worker pool
* Ensure we clear active periodic timers after shutdown
Diffstat (limited to 'actioncable/lib/action_cable/server')
-rw-r--r-- | actioncable/lib/action_cable/server/worker.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/actioncable/lib/action_cable/server/worker.rb b/actioncable/lib/action_cable/server/worker.rb index 49cbaec0c0..46a8989f34 100644 --- a/actioncable/lib/action_cable/server/worker.rb +++ b/actioncable/lib/action_cable/server/worker.rb @@ -59,18 +59,6 @@ module ActionCable end end - def async_run_periodic_timer(channel, callback) - @pool.post do - run_periodic_timer(channel, callback) - end - end - - def run_periodic_timer(channel, callback) - work(channel.connection) do - callback.respond_to?(:call) ? channel.instance_exec(&callback) : channel.send(callback) - end - end - private def logger |