Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A {
- func doSomething(completion1: (() -> Void), completion2: (() -> Void)) {
- completion1()
- completion2()
- }
- }
- A().doSomething(completion1: {
- print("Finish completion 1")
- }) {
- print("Finish completion 2")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement