Skip to content

Commit e927507

Browse files
committed
Basics: add missing @Sendable to withTemporaryDirectory (#5872)
Added `@Sendable` attribute to the `body` argument of `withTemporaryDirectory`.
1 parent 30c67ec commit e927507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Basics/TemporaryFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public func withTemporaryDirectory<Result>(
3939
fileSystem: FileSystem = localFileSystem,
4040
dir: AbsolutePath? = nil,
4141
prefix: String = "TemporaryDirectory",
42-
_ body: @escaping (AbsolutePath, @escaping (AbsolutePath) -> Void) async throws -> Result
42+
_ body: @Sendable @escaping (AbsolutePath, @escaping (AbsolutePath) -> Void) async throws -> Result
4343
) throws -> Task<Result, Error> {
4444
let temporaryDirectory = try createTemporaryDirectory(fileSystem: fileSystem, dir: dir, prefix: prefix)
4545

0 commit comments

Comments
 (0)