Question from the Swift test

Use dispatch_once from Grand Central Dispatch,Declare the portion of code whose result is stored in a static let in Swift.

Hard

How do you ensure that a portion of code is executed once and only once?

Author: Smart&SoftStatus: PublishedQuestion passed 355 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!