module Ractor::Server::ClassMethods
Public Instance Methods
start(*args, **options)
click to toggle source
# File lib/ractor/server/server.rb, line 61 def start(*args, **options) ractor = start_ractor(*args, **options) self::Client.new(ractor) end
start_ractor(*args, **options)
click to toggle source
@returns [Ractor] running an instance of the Server
# File lib/ractor/server/server.rb, line 67 def start_ractor(*args, **options) ::Ractor.new(self, args.freeze, options.freeze) do |klass, args, options| server = klass.new(*args, **options) server.__send__ :main_loop end end
tells(*methods)
click to toggle source
# File lib/ractor/server/server.rb, line 53 def tells(*methods) self::Client.tells(*methods) end