Skip to content

Instantly share code, notes, and snippets.

@dmitriid
Created Jan 22, 2015
Embed
What would you like to do?
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