diff options
Diffstat (limited to 'src/cowboy_loop.erl')
-rw-r--r-- | src/cowboy_loop.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cowboy_loop.erl b/src/cowboy_loop.erl index f0b2886..695439a 100644 --- a/src/cowboy_loop.erl +++ b/src/cowboy_loop.erl @@ -38,7 +38,9 @@ | {ok, Req, State, hibernate} | {stop, Req, State} when Req::cowboy_req:req(), State::any(). -%% @todo optional -callback terminate(terminate_reason(), cowboy_req:req(), state()) -> ok. + +-callback terminate(any(), cowboy_req:req(), any()) -> ok. +-optional_callbacks([terminate/3]). -record(state, { env :: cowboy_middleware:env(), |