Skip to content

Instantly share code, notes, and snippets.

@dmitriid
Created January 22, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitriid/709ec0b2aaae3a8f650d to your computer and use it in GitHub Desktop.
Save dmitriid/709ec0b2aaae3a8f650d to your computer and use it in GitHub Desktop.
do(...) ->
case req(...) of
{no_response, timeout} -> {error, "Timeout"};
end.
req(...) ->
case ltthpc:request(... ) of
{error, timeout} -> {no_response, timeout};
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment