We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9616bda commit 6aa78ecCopy full SHA for 6aa78ec
Sources/Mach/Core/Messaging/MIG/MIGClient.swift
@@ -40,8 +40,8 @@ extension Mach {
40
public func doRoutine<ReplyPayload: Mach.MIGPayload>(
41
_ routineIndex: mach_msg_id_t,
42
request: MIGRequest<some Mach.MIGPayload>,
43
- replyPayloadType: ReplyPayload.Type,
44
- replyPort: Mach.Port?
+ replyPayloadType: ReplyPayload.Type = ReplyPayload.self,
+ replyPort: Mach.Port? = nil
45
) throws -> Mach.MIGReply<ReplyPayload> {
46
let routineId = self.baseRoutineId + routineIndex
47
request.header.msgh_id = routineId
0 commit comments