threadDictionary
The thread object’s dictionary.
Declaration
var threadDictionary: NSMutableDictionary { get }Discussion
You can use the returned dictionary to store thread-specific data. The thread dictionary is not used during any manipulations of the NSThread object—it is simply a place where you can store any interesting data. For example, Foundation uses it to store the thread’s default NSConnection and NSAssertionHandler instances. You may define your own keys for the dictionary.