mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-14 00:56:22 +01:00
std.Io: add asyncConcurrent and asyncParallel
This commit is contained in:
parent
ec3e4c00c3
commit
f762597724
4 changed files with 331 additions and 310 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue