Skip to content
Snippets Groups Projects
Commit 9d18fdae authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add UnregisterForNotifications functor

parent ab7c9026
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!31Update Bindings
import Bindings
import XCTestDynamicOverlay
public struct UnregisterForNotifications {
public var run: (Int) throws -> Void
public func callAsFunction(
e2eId: Int
) throws {
try run(e2eId)
}
}
extension UnregisterForNotifications {
public static let live = UnregisterForNotifications { e2eId in
var error: NSError?
BindingsUnregisterForNotifications(e2eId, &error)
if let error = error {
throw error
}
}
}
extension UnregisterForNotifications {
public static let unimplemented = UnregisterForNotifications(
run: XCTUnimplemented("\(Self.self)")
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment