Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import Foundation
  2.  
  3. class SomeClass {
  4.  
  5. func withSomeLongNameMethod(_ block: @escaping () -> (), completion: (() -> Void)? = nil) {
  6.  
  7. let someClass = SomeClass()
  8. someClass.withSomeLongNameMethod({
  9. print("block")
  10. }, completion: {
  11. print("completion")
  12. })
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement