Skip to content

Instantly share code, notes, and snippets.

@chrisschreiner
Created September 22, 2014 06:50
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 chrisschreiner/aeb6858c94b0335218a0 to your computer and use it in GitHub Desktop.
Save chrisschreiner/aeb6858c94b0335218a0 to your computer and use it in GitHub Desktop.
import XCPlayground
import UIKit
import Framework3
XCPSetExecutionShouldContinueIndefinitely()
var r = request(.GET, "http://en.lichess.org/api/user/peropaal")
.response { (request, response, data, error) in
println(request)
println()
println(response)
println()
println(error)
}
@chrisschreiner
Copy link
Author

That XCPSetExecutionShouldContinueIndefinitely() will allow you to use asynchronous code in playgrounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment