Kaffe.PartitionSelector.round_robin

You're seeing just the function round_robin, go back to Kaffe.PartitionSelector module for more information.
Link to this function

round_robin(current, total)

View Source

Cycle current from 0 to total-1.

Examples

iex> Kaffe.PartitionSelector.round_robin(nil, 3) 0

iex> Kaffe.PartitionSelector.round_robin(0, 3) 1

iex> Kaffe.PartitionSelector.round_robin(1, 3) 2

iex> Kaffe.PartitionSelector.round_robin(2, 3) 0