-
Notifications
You must be signed in to change notification settings - Fork 0
fiberCount
ffredyk edited this page Jul 23, 2026
·
1 revision
Scheduler Management
Unary — fiberCount <schedulerId>.
fiberCount <number>
Returns the total number of fibers (ready + waiting) on the given scheduler. Includes fibers that are currently sleeping, awaiting handles, or ready to execute.
Counts all fibers registered with the scheduler — both in the ready queue and the waiting (sleep/await) list.
_total = fiberCount 1; // e.g., 42
systemChat f"Total fibers on Main: {_total}";_total = fiberCount _schedulerId;
_ready = readyFiberCount _schedulerId;
_waiting = waitingFiberCount _schedulerId;
systemChat f"Fibers: {_total} total, {_ready} ready, {_waiting} waiting";if (fiberCount 1 > 1000) then {
systemChat "Warning: High fiber count on Main";
};ReadOnly — approximate snapshot. Fiber count may change between the call and subsequent operations. Safe from any scheduler.
- readyFiberCount — ready fibers only
- waitingFiberCount — waiting fibers only
- schedulerLoad — load percentage
- spawn — creates fibers
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo