withFileSystem(numberOfThreads:_:)

    Provides temporary scoped access to a FileSystem with the given number of threads.

    FileSystem.swift:692
    iOS
    13.0+
    macOS
    10.15+
    tvOS
    13.0+
    watchOS
    6.0+
    func withFileSystem<Result>(numberOfThreads: Int, _ body: (FileSystem) async throws -> Result) async throws -> Result

    See also

    • struct FileSystem

      A file system which interacts with the local system. The file system uses a thread pool to perform system calls.

    • struct FileHandle

      Implements FileHandleProtocol by making system calls to interact with the local file system.

    • struct ReadFileHandle

      Implements ReadableFileHandleProtocol by making system calls to interact with the local file system.

    • struct WriteFileHandle

      Implements WritableFileHandleProtocol by making system calls to interact with the local file system.

    • struct ReadWriteFileHandle

      Implements ReadableAndWritableFileHandleProtocol by making system calls to interact with the local file system.

    • struct DirectoryFileHandle

      Implements DirectoryFileHandleProtocol by making system calls to interact with the local file system.