Skip to content
Snippets Groups Projects

Notifications

Merged Dariusz Rybicki requested to merge feature/notifications into development
2 files
+ 35
2
Compare changes
  • Side-by-side
  • Inline
Files
2
 
import Bindings
 
import XCTestDynamicOverlay
 
 
public struct CMixTrackServicesWithIdentity {
 
public var run: (Int, TrackServicesCallback) throws -> Void
 
 
public func callAsFunction(
 
_ identity: Int,
 
callback: TrackServicesCallback
 
) throws -> Void {
 
try run(identity, callback)
 
}
 
}
 
 
extension CMixTrackServicesWithIdentity {
 
public static func live(_ bindingsCMix: BindingsCmix) -> CMixTrackServicesWithIdentity {
 
CMixTrackServicesWithIdentity { identity, callback in
 
try bindingsCMix.trackServices(
 
withIdentity: identity,
 
cb: callback.makeBindingsHealthCallback()
 
)
 
}
 
}
 
}
 
 
extension CMixTrackServicesWithIdentity {
 
public static let unimplemented = CMixTrackServicesWithIdentity(
 
run: XCTUnimplemented("\(Self.self)")
 
)
 
}
Loading