- iOS
- Xcode
let q = EasyThread.getQueue(processors: 1)
q.dispatch {
print("uno")
}
q.dispatch {
print("due")
}
q.dispatch {
print("tre")
}
}
let q = EasyThread.getQueue(processors: 10)
q.dispatch {
print("uno")
}
q.dispatch {
print("due")
}
q.dispatch {
print("tre")
}
}
try? Promise<Int>{
return 10
}.next { r -> String in
let v = try
return "test"
}.next { r -> Int in
let v = try r()
return 1
}.fail { error in
print(error)
}.wait()
Short is available under the MIT license. See the LICENSE file for more info.