secretive/Sources/Packages/Sources/XPCWrappers/XPCProtocol.swift
Max Goedjen eaef1e801b
.
2025-09-08 23:07:15 -07:00

15 lines
334 B
Swift

import Foundation
@objc protocol _XPCProtocol: Sendable {
func process(_ data: Data, with reply: @Sendable @escaping (Data?, Error?) -> Void)
}
public protocol XPCProtocol<Input, Output>: Sendable {
associatedtype Input: Codable
associatedtype Output: Codable
func process(_ data: Input) async throws -> Output
}