View Source
Qu.Queue protocol
(qu v0.1.0)
Protocol definition shared by all queue implementations.
Summary
All the types that implement this protocol.
Types
All the types that implement this protocol.
Functions
@spec peek(t()) :: {:ok, item()} | :error
@spec pop(t()) :: {:ok, item(), t()} | :error
@spec put(t(), item()) :: {:ok, t()} | :error