Normandy.Behaviours.SessionRegistry.Redis.Via
(normandy v1.1.1)
View Source
:via callbacks for SessionRegistry.Redis, delegating to the local owner
GenServer. A Turn.Server started under {:via, __MODULE__, {owner, session_id}}
registers atomically at process start (SET … NX); a losing concurrent start gets
{:error, {:already_started, pid}} and the router routes to the winner.