Created
July 17, 2020 08:09
-
-
Save alirp88/bd521fc00f0fd98d9c50bf7d7a8c8005 to your computer and use it in GitHub Desktop.
Running PlayGround Indefinitely
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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