Explorar o código

Documentation fix.

Daniel Alm %!s(int64=7) %!d(string=hai) anos
pai
achega
5248b05962
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      Sources/SwiftGRPC/Core/CompletionQueue.swift

+ 2 - 3
Sources/SwiftGRPC/Core/CompletionQueue.swift

@@ -96,11 +96,10 @@ class CompletionQueue {
     return CompletionQueueEvent(event)
   }
 
-  /// Register an operation group for handling upon completion. Returns true if the operation group was registered
-  /// successfully.
+  /// Register an operation group for handling upon completion. Will throw if the queue has been shutdown already.
   ///
   /// - Parameter operationGroup: the operation group to handle
-  func register(_ operationGroup: OperationGroup, onSuccess: () throws -> Void) rethrows {
+  func register(_ operationGroup: OperationGroup, onSuccess: () throws -> Void) throws {
     try operationGroupsMutex.synchronize {
       guard !hasBeenShutdown
         else { throw CallError.completionQueueShutdown }