Spear.ping
You're seeing just the function
ping
, go back to Spear module for more information.
Specs
ping(connection :: Spear.Connection.t(), timeout()) :: :pong | {:error, any()}
Pings a connection
This can be used to ensure that the connection process is alive, or to roughly measure the latency between the connection process and EventStoreDB.
Examples
iex> Spear.ping(conn)
:pong