Releases: tiny2n/Await
Releases · tiny2n/Await
Supported SPM
1.1.2
Await Task Support
Await Task Support
final public class AwaitTask<Value> {
private var value: Value
public init(value: Value) {
self.value = value
}
public func await() -> Value {
return value
}
}
public func await<Value>(_ task: AwaitTask<Value>) throws -> Value {
return task.await()
}Concurrent Support
Await Concurrent Support
Supported: Carthage
Supported: Carthage