Promise in Swift Part-2
I will show you my implementation:
let take = { (s:String) in
let c = s
print(s)
}
DispatchQueue.main.async {
take("first call!")
}
// To make our following code cleaner, we delcare a alias here, and thanks to swift3.0, we can now use generic type here!
typealias clr<