Skip to content

Commit

Permalink
Fix generic parameter 'T' could not be inferred
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jan 29, 2025
1 parent 5c7f677 commit ef16b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MQTTNIO/AsyncAwaitSupport/MQTTClient+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extension MQTTClient {
/// - Parameters:
/// - queue: Dispatch Queue to run shutdown on
public func shutdown(queue: DispatchQueue = .global()) async throws {
try await withUnsafeThrowingContinuation { cont in
try await withUnsafeThrowingContinuation { (cont: UnsafeContinuation<Void, Error>) in
self.shutdown(queue: queue) { error in
if let error {
cont.resume(throwing: error)
Expand Down

0 comments on commit ef16b8d

Please sign in to comment.