AnyCasePath closures will be required to be @Sendable for Swift 6 data race checking, but Enum.case functions are not @Sendable implicitly. As such we cannot pass Enum.case directly to functions that expect sendable closures. Instead, we must explicitly write:
AnyCasePath
closures will be required to be@Sendable
for Swift 6 data race checking, butEnum.case
functions are not@Sendable
implicitly. As such we cannot passEnum.case
directly to functions that expect sendable closures. Instead, we must explicitly write: