class Elevate::HTTP::NetworkThread
Public Class Methods
cancel(connection)
click to toggle source
# File lib/elevate/http/thread.rb, line 4 def self.cancel(connection) connection.performSelector(:cancel, onThread:thread, withObject:nil, waitUntilDone:false) end
start(connection)
click to toggle source
# File lib/elevate/http/thread.rb, line 8 def self.start(connection) connection.performSelector(:start, onThread:thread, withObject:nil, waitUntilDone:false) end
Private Class Methods
main(_)
click to toggle source
# File lib/elevate/http/thread.rb, line 14 def self.main(_) while true NSRunLoop.currentRunLoop.run end end
thread()
click to toggle source
# File lib/elevate/http/thread.rb, line 20 def self.thread Dispatch.once do @thread = NSThread.alloc.initWithTarget(self, selector: :"main:", object: nil) @thread.start end @thread end