syndisco.RoundRobin

class RoundRobin(names: Iterable[str] | None = None)

Bases: TurnManager

A simple turn manager which gives priority to the next user in the queue.

next() str

Get the username of the next speaker.

Raises:

ValueError – if no names have been provided from the constructor, or from the TurnManager.set() method

Returns:

the next speaker’s username

Return type:

str

set_names(names: Iterable[str]) None

Initialize the manager by providing the names of the users.

Parameters:

names (Iterable[str]) – the usernames of the participants