Skip to content

Instantly share code, notes, and snippets.

@alirp88
Created July 17, 2020 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alirp88/bd521fc00f0fd98d9c50bf7d7a8c8005 to your computer and use it in GitHub Desktop.
Save alirp88/bd521fc00f0fd98d9c50bf7d7a8c8005 to your computer and use it in GitHub Desktop.
Running PlayGround Indefinitely
import Foundation
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3)) {
print("YOLO")
PlaygroundPage.current.finishExecution()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment