Open Classswift 6.0.3Foundation
RunLoop
class RunLoop
class RunLoop
import Foundation
class NSObject
The root class of most Foundation class hierarchies.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
class var current: RunLoop { get }
class var main: RunLoop { get }
var currentMode: RunLoop.Mode? { get }
func acceptInput(forMode mode: String, before limitDate: Date)
func add(_ aPort: Port, forMode mode: RunLoop.Mode)
func add(_ timer: Timer, forMode mode: RunLoop.Mode)
func limitDate(forMode mode: RunLoop.Mode) -> Date?
func perform(_ block: @escaping () -> Void)
func perform(inModes modes: [RunLoop.Mode], block: @escaping () -> Void)
func remove(_ aPort: Port, forMode mode: RunLoop.Mode)
func run()
func run(mode: RunLoop.Mode, before limitDate: Date) -> Bool
func run(until limitDate: Date)
struct Mode