Avatar
あ〜
8:27 AM
Copyableを引いただけだからEscapableの条件は残ってますね
8:28 AM
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *) @frozen public struct Mutex<Value> : ~Copyable where Value : ~Copyable { } @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *) extension Mutex : @unchecked Sendable where Value : ~Copyable { } extension Mutex where Value : ~Copyable { @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *) public borrowing func withLock<Result, E>(_ body: (inout sending Value) throws(E) -> sending Result) throws(E) -> sending Result where E : Error, Result : ~Copyable }
8:28 AM
これ3つに分かれてるけどwhereが全部同じだから、分かれてる意味はなさそうです