View Source Zenohex.Subscriber (Zenohex v0.3.1)
Documentation for Elixir.Zenohex.Subscriber
.
Summary
Functions
Receive data. Normally users don't need to change the default timeout_us.
Types
@opaque t()
Functions
@spec recv_timeout(t(), pos_integer()) :: {:ok, Zenohex.Sample.t()} | {:error, :timeout} | {:error, reason :: any()}
Receive data. Normally users don't need to change the default timeout_us.
Examples
iex> {:ok, session} = Zenohex.open()
iex> {:ok, subscriber} = Zenohex.Session.declare_subscriber(session, "key/expression")
iex> Zenohex.Subscriber.recv_timeout(subscriber)
{:error, :timeout}