std.Io: add asyncConcurrent and asyncParallel

This commit is contained in:
Andrew Kelley 2025-07-17 20:26:07 -07:00
parent ec3e4c00c3
commit f762597724
4 changed files with 331 additions and 310 deletions

View file

@ -385,6 +385,8 @@ pub const CpuCountError = error{
};
/// Returns the platforms view on the number of logical CPU cores available.
///
/// Returned value guaranteed to be >= 1.
pub fn getCpuCount() CpuCountError!usize {
return try Impl.getCpuCount();
}