Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Explicit type for better Swift version compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Aug 14, 2022
1 parent 537b6ad commit f8e2d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ConcurrencyPlus/NSXPCConnection+Continuation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public extension NSXPCConnection {

/// Access a proxy for a one-way message that is automatically cancelled on connection failure
func withService<Service>(function: String = #function, _ body: (Service) throws -> Void) async throws {
try await withContinuation(function: function, { (service, continuation: CheckedContinuation<Void, Error>) in
try await withContinuation(function: function, { (service: Service, continuation: CheckedContinuation<Void, Error>) in
do {
try body(service)

Expand Down

0 comments on commit f8e2d46

Please sign in to comment.