mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-20 03:10:57 +00:00
15 lines
334 B
Swift
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
|
|
|
|
}
|