Avatar
6.0.3じゃ足りないのか
1:25 PM
@swift-6.1-dev 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 {} } }