@@ -30,8 +30,8 @@ private import Synchronization
30
30
///
31
31
/// ## Creating a client
32
32
///
33
- /// You can create and run a client using ``withGRPCClient(transport:interceptors:handleClient:)``
34
- /// or ``withGRPCClient(transport:interceptorPipeline:handleClient:)`` which create, configure and
33
+ /// You can create and run a client using ``withGRPCClient(transport:interceptors:isolation: handleClient:)``
34
+ /// or ``withGRPCClient(transport:interceptorPipeline:isolation: handleClient:)`` which create, configure and
35
35
/// run the client providing scoped access to it via the `handleClient` closure. The client will
36
36
/// begin gracefully shutting down when the closure returns.
37
37
///
@@ -381,6 +381,8 @@ public final class GRPCClient: Sendable {
381
381
/// are called. The first interceptor added will be the first interceptor to intercept each
382
382
/// request. The last interceptor added will be the final interceptor to intercept each
383
383
/// request before calling the appropriate handler.
384
+ /// - isolation: A reference to the actor to which the enclosing code is isolated, or nil if the
385
+ /// code is nonisolated.
384
386
/// - handleClient: A closure which is called with the client. When the closure returns, the
385
387
/// client is shutdown gracefully.
386
388
public func withGRPCClient< Result: Sendable > (
@@ -406,6 +408,8 @@ public func withGRPCClient<Result: Sendable>(
406
408
/// The order in which interceptors are added reflects the order in which they are called.
407
409
/// The first interceptor added will be the first interceptor to intercept each request.
408
410
/// The last interceptor added will be the final interceptor to intercept each request before calling the appropriate handler.
411
+ /// - isolation: A reference to the actor to which the enclosing code is isolated, or nil if the
412
+ /// code is nonisolated.
409
413
/// - handleClient: A closure which is called with the client. When the closure returns, the
410
414
/// client is shutdown gracefully.
411
415
/// - Returns: The result of the `handleClient` closure.
0 commit comments