File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Documentation.docc/Development Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,12 +173,12 @@ concurrency.
173
173
Most users won't use `` GRPCClient `` to execute RPCs directly, instead they will
174
174
use the generated client stubs which wrap the `` GRPCClient `` . Users are
175
175
responsible for creating the client and running it (which starts and runs the
176
- underlying transport). This is done by calling `` GRPCClient/run () `` . The client
176
+ underlying transport). This is done by calling `` GRPCClient/runConnections () `` . The client
177
177
can be shutdown gracefully by calling `` GRPCClient/beginGracefulShutdown() ``
178
178
which will stop new RPCs from starting (by failing them with
179
179
`` RPCError/Code-swift.struct/unavailable `` ) but allow existing ones to continue.
180
180
Existing work can be stopped more abruptly by cancelling the task where
181
- `` GRPCClient/run () `` is executing.
181
+ `` GRPCClient/runConnections () `` is executing.
182
182
183
183
#### Server
184
184
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ public final class GRPCClient<Transport: ClientTransport>: Sendable {
231
231
///
232
232
/// The transport will be closed: this means that it will be given enough time to wait for
233
233
/// in-flight RPCs to finish executing, but no new RPCs will be accepted. You can cancel the task
234
- /// executing ``run ()`` if you want to abruptly stop in-flight RPCs.
234
+ /// executing ``runConnections ()`` if you want to abruptly stop in-flight RPCs.
235
235
public func beginGracefulShutdown( ) {
236
236
let wasRunning = self . stateMachine. withLock { $0. state. beginGracefulShutdown ( ) }
237
237
if wasRunning {
You can’t perform that action at this time.
0 commit comments