8

I have an app written in Swift 2. And there is a line like this.

semaphore.wait(timeout: dispatch_time_t(DISPATCH_TIME_FOREVER));

but this line shows as an error in Swift 3. How can I convert this to Swift 3.

Please help me. Thanks

Parth Adroja
  • 13,198
  • 5
  • 37
  • 71
user1960169
  • 3,533
  • 12
  • 39
  • 61

1 Answers1

15

You can convert it like this semaphore.wait(timeout: .distantFuture)

Andrey Volobuev
  • 862
  • 8
  • 11