Sha256: d6a780586d446f5cebf7dd0bd443d9d6e75d9400a1e0063123f36449b96fa142
Contents?: true
Size: 627 Bytes
Versions: 7
Compression:
Stored size: 627 Bytes
Contents
module Elevate module HTTP class NetworkThread def self.cancel(connection) connection.performSelector(:cancel, onThread:thread, withObject:nil, waitUntilDone:false) end def self.start(connection) connection.performSelector(:start, onThread:thread, withObject:nil, waitUntilDone:false) end private def self.main(_) while true NSRunLoop.currentRunLoop.run end end def self.thread Dispatch.once do @thread = NSThread.alloc.initWithTarget(self, selector: :"main:", object: nil) @thread.start end @thread end end end end
Version data entries
7 entries across 7 versions & 1 rubygems