Avatar
@swift-6.0.3 @swift-5.10.1 struct Client { var handler: @Sendable () async throws -> Void static let shared: Client = { let model = Model() return Self(handler: { try await model.handle() // ここでawaitをつけるかどうか }) }() private actor Model { func handle() throws {} } }