livery_client_timeout (livery v0.2.0)

View Source

Client layer: bound a request to a deadline.

Runs the downstream call in a monitored child process and returns {error, timeout} if it does not finish within Ms, killing the child (which tears down the in-flight connection). Add it with livery_client:timeout/1.

Summary

Functions

call(Req, Next, Ms)

-spec call(livery_client:request(), livery_client:next(), pos_integer()) ->
              {ok, livery_client:response()} | {error, term()}.