Buzzword.Bingo.Engine.GameServer (Buzzword Bingo Engine v0.1.36)
View SourceA server process that holds a game struct as its state. Times out after 30 minutes of inactivity.
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Spawns a game server process to be registered via a game name.
Allows to register or look up a game server process via game_name
.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec init({Buzzword.Bingo.Game.name(), Buzzword.Bingo.Game.size()}) :: {:ok, Buzzword.Bingo.Game.t(), timeout()}
Callback implementation for GenServer.init/1
.
@spec start_link({Buzzword.Bingo.Game.name(), Buzzword.Bingo.Game.size()}) :: GenServer.on_start()
Spawns a game server process to be registered via a game name.
@spec via(Buzzword.Bingo.Game.name()) :: {:via, Registry, tuple()}
Allows to register or look up a game server process via game_name
.