diff options
author | Loïc Hoguin <[email protected]> | 2012-02-02 20:04:06 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-02-02 20:04:06 +0100 |
commit | 062db956535907d33c430cd87e632d2c8f746240 (patch) | |
tree | 02c289183b748f89e0fee50dedeef732fb570f0e /test/websocket_handler_init_shutdown.erl | |
parent | 096f40bf0887730572f44e688214162c0517d0aa (diff) | |
download | cowboy-062db956535907d33c430cd87e632d2c8f746240.tar.gz cowboy-062db956535907d33c430cd87e632d2c8f746240.tar.bz2 cowboy-062db956535907d33c430cd87e632d2c8f746240.zip |
Apply a trick to the erlang:hibernate calls to suppress dialyzer warnings
Initially recommended by Magnus Klaar, the trick is to add a catch
instruction before the erlang:hibernate/3 call so that Dialyzer
thinks it will return, followed by the expected return value
('ok' for HTTP, 'closed' for websockets).
This should be good enough until a real solution is found.
Diffstat (limited to 'test/websocket_handler_init_shutdown.erl')
0 files changed, 0 insertions, 0 deletions