Skip to content

Instantly share code, notes, and snippets.

@drumnkyle
Last active August 29, 2015 14:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save drumnkyle/403660367045a1fd6048 to your computer and use it in GitHub Desktop.
Single Line Closure Problem in Swift
dispatch_async(dispatch_get_main_queue()) {
self.object?.doSomething()
return // This is needed for it to compile
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment