We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@Sendable
withTemporaryDirectory
1 parent 30c67ec commit e927507Copy full SHA for e927507
Sources/Basics/TemporaryFile.swift
@@ -39,7 +39,7 @@ public func withTemporaryDirectory<Result>(
39
fileSystem: FileSystem = localFileSystem,
40
dir: AbsolutePath? = nil,
41
prefix: String = "TemporaryDirectory",
42
- _ body: @escaping (AbsolutePath, @escaping (AbsolutePath) -> Void) async throws -> Result
+ _ body: @Sendable @escaping (AbsolutePath, @escaping (AbsolutePath) -> Void) async throws -> Result
43
) throws -> Task<Result, Error> {
44
let temporaryDirectory = try createTemporaryDirectory(fileSystem: fileSystem, dir: dir, prefix: prefix)
45
0 commit comments