const need_async_thread: bool = std.io.is_async and switch (builtin.os.tag) { .windows, .other => false, else => true, };
Whether or not async file system syscalls need a dedicated thread because the operating system does not support non-blocking I/O on the file system.