daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func foo(arg1: Int, arg2: Int, completionHandler: @escaping () -> ())
  2.    
  3. wrap({ foo(arg1: val1, arg2: val2, completionHandler: $0) })
  4.    
  5. Promise { foo(arg1: val1, arg2: val2, completionHandler: $0.resolve) }
  6.    
  7. Promise<Void> { foo(arg1: val1, arg2: val2, completionHandler: $0.resolve) }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top