Class: RuboCop::Cop::AnyCable::PeriodicalTimers

Inherits:
Base
  • Object
show all
Defined in:
lib/anycable/rails/rubocop/cops/anycable/periodical_timers.rb

Overview

Checks for periodical timers usage.

Examples:

# bad
class MyChannel < ApplicationCable::Channel
  periodically(:do_something, every: 2.seconds)
end

Constant Summary collapse

MSG =
"Periodical Timers are not supported in AnyCable"
RESTRICT_ON_SEND =
%i[periodically].freeze