Skip to content
Snippets Groups Projects

Update Bindings

Merged Dariusz Rybicki requested to merge feature/update-bindings into development
3 files
+ 27
27
Compare changes
  • Side-by-side
  • Inline
Files
3
import Bindings
public struct NetworkWaiter {
public var wait: (_ timeoutMS: Int) -> Bool
public func callAsFunction(timeoutMS: Int) -> Bool {
wait(timeoutMS)
}
}
extension NetworkWaiter {
public static func live(bindingsClient: BindingsCmix) -> NetworkWaiter {
NetworkWaiter { timeoutMS in
bindingsClient.wait(forNetwork: timeoutMS)
}
}
}
#if DEBUG
extension NetworkWaiter {
public static let failing = NetworkWaiter { _ in
fatalError("Not implemented")
}
}
#endif
Loading