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 391 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!