hare v0.2.2 Hare.Core.Conn.State.Waiting

This module defines the Conn.State.Waiting struct that keeps track of the clients waiting for a channel.

Clients wait for a channel when they attempt to open a new one but the connection is not established.

Summary

Functions

Builds a new Waiting struct

Pops all clients from the list

Adds a new client to the list

Types

client()
client() :: GenServer.from
clients()
clients() :: [client]
t()
t() :: %Hare.Core.Conn.State.Waiting{clients: clients}

Functions

new()
new() :: t

Builds a new Waiting struct.

pop_all(waiting)
pop_all(t) :: {clients, t}

Pops all clients from the list.

push(waiting, client)
push(t, client) :: t

Adds a new client to the list.