Skip to content

Instantly share code, notes, and snippets.

@jonathan-beebe
Created September 4, 2015 00:47
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 jonathan-beebe/4659a5acab1386b6cfa0 to your computer and use it in GitHub Desktop.
Save jonathan-beebe/4659a5acab1386b6cfa0 to your computer and use it in GitHub Desktop.
Xcode Swift playgrounds do not normally run async code. You must tell the playground to continue indefinitely.
import XCPlayground
import Foundation
...
XCPSetExecutionShouldContinueIndefinitely(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment