instance method
spawn
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
spawn()
No documentation comment.
Source
# File actioncable/lib/action_cable/server/stream_event_loop.rb, line 51
def spawn
return if @thread && @thread.status
@spawn_mutex.synchronize do
return if @thread && @thread.status
@nio ||= NIO::Selector.new
@thread = Thread.new { run }
return true
end
end
Defined in actioncable/lib/action_cable/server/stream_event_loop.rb line 51
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Server::StreamEventLoop