Browse Source

Documentation fix.

Daniel Alm 7 years ago
parent
commit
5248b05962
1 changed files with 2 additions and 3 deletions
  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 }