instance method
perform_work
Ruby on Rails edge
Since edgeSignature
perform_work(receiver, method, *args)
Invoke a method on the connection asynchronously through the pool of thread workers. Like the connection’s commands, these calls run one at a time, in the order they were made.
Parameters
-
receiverreq -
methodreq -
argsrest
Source
# File actioncable/lib/action_cable/server/socket.rb, line 63
def perform_work(receiver, method, *args)
worker_pool.async_invoke(receiver, method, *args, connection: self, executor: @serial_executor)
end
Defined in actioncable/lib/action_cable/server/socket.rb line 63
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Server::Socket