Tyrex.Pool.Strategy.RoundRobin (Tyrex v0.3.0)

Copy Markdown View Source

Round-robin dispatch strategy (default).

Uses an ETS atomic counter for lock-free, sequential cycling through runtimes.

Summary

Functions

Selects the next runtime index in 0..size-1 using a lock-free ETS update_counter with a wrap-around threshold. Safe to call concurrently from any number of processes.

Functions

select(arg, opts)

Selects the next runtime index in 0..size-1 using a lock-free ETS update_counter with a wrap-around threshold. Safe to call concurrently from any number of processes.