ソースを参照

Documentation fix.

Daniel Alm 7 年 前
コミット
5248b05962
1 ファイル変更2 行追加3 行削除
  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 }