Open ClassFoundation5.9.0
Thread
class Thread
Superclasses
class NSObject
The root class of most Foundation class hierarchies.
Citizens in Foundation
Conformances
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
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
init(
) convenience init(block: () -> Void
) class var callStackReturnAddresses: [NSNumber]
class var callStackSymbols: [String]
class var current: Thread
class var isMainThread: Bool
class var mainThread: Thread
class func detachNewThread(() -> Void
) Alternative API for detached thread creation
class func exit(
) class func isMultiThreaded(
) -> Bool class func sleep(forTimeInterval: TimeInterval
) class func sleep(until: Date
) var isCancelled: Bool
var isExecuting: Bool
var isFinished: Bool
var isMainThread: Bool
var name: String?
var qualityOfService: QualityOfService
var stackSize: Int
var threadDictionary: NSMutableDictionary
func cancel(
) func main(
) func start(
)
Extension in Vapor
Members
static func async(() -> ()
) Convenience wrapper around
Thread.detachNewThread
.