diff options
author | Loïc Hoguin <[email protected]> | 2018-07-18 17:24:41 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-07-18 17:24:41 +0200 |
commit | 8b4c6f4bf9880d59bbc012b6ba9d5e60c4f62b3a (patch) | |
tree | 8cfcf87f69be525252addd32d880abb8ad02a1ad /src/ranch.erl | |
parent | a230411488fe2d8ae1e8bf414a4fe4ecf3662a83 (diff) | |
download | ranch-8b4c6f4bf9880d59bbc012b6ba9d5e60c4f62b3a.tar.gz ranch-8b4c6f4bf9880d59bbc012b6ba9d5e60c4f62b3a.tar.bz2 ranch-8b4c6f4bf9880d59bbc012b6ba9d5e60c4f62b3a.zip |
Add one manual per function for the ranch module
Also review and update the ranch(7) manual and fix a few specs.
Diffstat (limited to 'src/ranch.erl')
-rw-r--r-- | src/ranch.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ranch.erl b/src/ranch.erl index c0f86a9..424d4d7 100644 --- a/src/ranch.erl +++ b/src/ranch.erl @@ -181,7 +181,7 @@ stop_listener(Ref) -> {error, Reason} end. --spec suspend_listener(ref()) -> ok | {error, term()}. +-spec suspend_listener(ref()) -> ok | {error, any()}. suspend_listener(Ref) -> case get_status(Ref) of running -> @@ -192,7 +192,7 @@ suspend_listener(Ref) -> ok end. --spec resume_listener(ref()) -> ok | {error, term()}. +-spec resume_listener(ref()) -> ok | {error, any()}. resume_listener(Ref) -> case get_status(Ref) of running -> @@ -263,7 +263,7 @@ remove_connection(Ref) -> ConnsSup ! {remove_connection, Ref, self()}, ok. --spec get_status(ref()) -> running | suspended | restarting. +-spec get_status(ref()) -> running | suspended. get_status(Ref) -> ListenerSup = ranch_server:get_listener_sup(Ref), Children = supervisor:which_children(ListenerSup), |