DispatchQueue
class DispatchQueue : DispatchObject
                - 
                  
                  
Executes a block of code, associated with a unique token, only once. The code is thread safe and will only execute the code once even in the presence of multithreaded calls.
See also
Declaration
Swift
open class func once(file: String = #file, function: String = #function, line: Int = #line, block: () -> Void)Parameters
blockBlock to execute once
 - 
                  
                  
Executes a block of code, associated with a unique token, only once. The code is thread safe and will only execute the code once even in the presence of multithreaded calls.
Declaration
Swift
open class func once(token: String, block: () -> Void)Parameters
tokenA unique reverse DNS style name such as io.stanwood.
or a GUID blockBlock to execute once
 
            View on GitHub
          
      DispatchQueue Extension Reference