Invokes a method of the receiver on a new background thread.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- watchOS 2.0+
A Selector that identifies the method to invoke. The method should not have a significant return value and should take a single argument of type id, or no arguments.
The argument to pass to the method when it is invoked. Pass
nilif the method does not take an argument.
This method creates a new thread in your application, putting your application into multithreaded mode if it was not already. The method represented by
a must set up the thread environment just as you would for any other new thread in your program. For more information about how to configure and run threads, see Threading Programming Guide.