schedule(in:forMode:)
Adds the receiver to the specified run loop.
Declaration
func schedule(in aRunLoop: RunLoop, forMode mode: RunLoop.Mode)Parameters
Discussion
You can use this method in conjunction with remove(from:forMode:) to transfer the receiver to a run loop other than the default one. You should not attempt to run the receiver on multiple run loops.