We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2453b90 commit 5eb37dbCopy full SHA for 5eb37db
Sources/GRPC/Server.swift
@@ -79,7 +79,9 @@ import Network
79
/// HTTP2Frame.FramePayload│ │HTTP2Frame.FramePayload
80
/// │ ▼
81
///
82
-public final class Server {
+///- Note: This class is thread safe. It's marked as `@unchecked Sendable` because the non-Sendable
83
+/// `errorDelegate` property is mutated, but it's done thread-safely, as it only happens inside the `EventLoop`.
84
+public final class Server: @unchecked Sendable {
85
/// Makes and configures a `ServerBootstrap` using the provided configuration.
86
public class func makeBootstrap(configuration: Configuration) -> ServerBootstrapProtocol {
87
let bootstrap = PlatformSupport.makeServerBootstrap(group: configuration.eventLoopGroup)
0 commit comments