Avatar
Avatar
omochimetaru
@swift-5.10.1 func withSpan<T>( isolation: isolated (any Actor)? = #isolation, _ operation: () async throws -> T ) async rethrows -> T { try await operation() }
exit status: 1 with <stdin>:2:16: error: 'isolated' parameter has non-actor type '(any Actor)?' isolation: isolated (any Actor)? = #isolation, ^ <stdin>:2:40: error: non-built-in macro cannot be used as default argument isolation: isolated (any Actor)? = #isolation, ^