From 983b743c8c8695c0235d6a3a9fe91a7a759cf0cb Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Mon, 18 Apr 2016 11:54:00 -0700 Subject: 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 --- actioncable/lib/action_cable/server/worker.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'actioncable/lib/action_cable/server') 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 -- cgit v1.2.3