mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 10:52:14 +02:00
wip
This commit is contained in:
@ -11,6 +11,9 @@ use Fidry\CpuCoreCounter\CpuCoreCounter;
|
||||
*/
|
||||
final class Cpu
|
||||
{
|
||||
/**
|
||||
* @param int<1, max> $fallback
|
||||
*/
|
||||
public static function cores(int $fallback = 4): int
|
||||
{
|
||||
return (new CpuCoreCounter)->getCountWithFallback($fallback);
|
||||
|
||||
Reference in New Issue
Block a user