Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class A {
  2. func doSomething(completion1: (() -> Void), completion2: (() -> Void)) {
  3. completion1()
  4. completion2()
  5. }
  6. }
  7.  
  8. A().doSomething(completion1: {
  9. print("Finish completion 1")
  10. }) {
  11. print("Finish completion 2")
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement