func willRunOnceCoach() -> () {
// struct TokenContainer {
// static var token : dispatch_once_t = 0
// }
//
// dispatch_once(&TokenContainer.token) {
// print("This is printed only on the first call")
// self.createCochMark()
// }
// }
Above is the dispatch_once code block and i want to convert it to swift 3. How can i do that?? AS of now i m getting the following error: "dispatch_once is unavailable in swift " Any help would be appreciated