@@ -169,7 +169,7 @@ connect(Host, Port, Opts, Timeout) when is_map(Opts) ->
169
169
handshake (Conn ) ->
170
170
handshake (Conn , 1000 ).
171
171
172
- -spec handshake (connection_handler (), timer : timeout ()) -> ok | {error , any ()}.
172
+ -spec handshake (connection_handler (), timeout ()) -> ok | {error , any ()}.
173
173
handshake (Conn , Timeout ) ->
174
174
case async_handshake (Conn ) of
175
175
{error , _ } = E -> E ;
@@ -190,7 +190,7 @@ async_handshake(Conn) ->
190
190
accept (LSock , Opts ) ->
191
191
accept (LSock , Opts , infinity ).
192
192
193
- -spec accept (listener_handler (), acceptor_opts (), timer : timeout ()) ->
193
+ -spec accept (listener_handler (), acceptor_opts (), timeout ()) ->
194
194
{ok , connection_handler ()} |
195
195
{error , badarg | param_error | not_enough_mem | badpid } |
196
196
{error , timeout }.
@@ -219,7 +219,7 @@ async_accept(Listener, Opts) ->
219
219
shutdown_connection (Conn ) ->
220
220
shutdown_connection (Conn , 5000 ).
221
221
222
- -spec shutdown_connection (connection_handler (), timer : timeout ()) ->
222
+ -spec shutdown_connection (connection_handler (), timeout ()) ->
223
223
ok | {error , timeout | badarg }.
224
224
shutdown_connection (Conn , Timeout ) ->
225
225
shutdown_connection (Conn , ? QUIC_CONNECTION_SHUTDOWN_FLAG_NONE , 0 , Timeout ).
@@ -234,7 +234,7 @@ shutdown_connection(Conn, Flags, ErrorCode) ->
234
234
-spec shutdown_connection (connection_handler (),
235
235
conn_shutdown_flag (),
236
236
app_errno (),
237
- timer : timeout ()) -> ok | {error , timeout | badarg }.
237
+ timeout ()) -> ok | {error , timeout | badarg }.
238
238
shutdown_connection (Conn , Flags , ErrorCode , Timeout ) ->
239
239
% % @todo make_ref
240
240
case async_shutdown_connection (Conn , Flags , ErrorCode ) of
@@ -269,7 +269,7 @@ close_connection(Conn, Flags, ErrorCode) ->
269
269
-spec close_connection (connection_handler (),
270
270
conn_shutdown_flag (),
271
271
app_errno (),
272
- timer : timeout ()) -> ok | {error , badarg | timeout }.
272
+ timeout ()) -> ok | {error , badarg | timeout }.
273
273
close_connection (Conn , Flags , ErrorCode , Timeout ) ->
274
274
case shutdown_connection (Conn , Flags , ErrorCode , Timeout ) of
275
275
{error , _ } = Err ->
@@ -409,7 +409,7 @@ send_dgram(Conn, Data) ->
409
409
shutdown_stream (Stream ) ->
410
410
shutdown_stream (Stream , infinity ).
411
411
412
- -spec shutdown_stream (stream_handler (), timer : timeout ()) ->
412
+ -spec shutdown_stream (stream_handler (), timeout ()) ->
413
413
ok |
414
414
{error , badarg } |
415
415
{error , timeout }.
@@ -419,7 +419,7 @@ shutdown_stream(Stream, Timeout) ->
419
419
-spec shutdown_stream (stream_handler (),
420
420
stream_shutdown_flags (),
421
421
app_errno (),
422
- time : timeout ()) ->
422
+ timeout ()) ->
423
423
ok |
424
424
{error , badarg } |
425
425
{error , timeout }.
@@ -458,7 +458,7 @@ close_stream(Stream) ->
458
458
E
459
459
end .
460
460
461
- -spec close_stream (stream_handler (), timer : timeout ())
461
+ -spec close_stream (stream_handler (), timeout ())
462
462
-> ok | {error , badarg | timeout }.
463
463
close_stream (Stream , Timeout ) ->
464
464
case shutdown_stream (Stream , Timeout ) of
@@ -469,7 +469,7 @@ close_stream(Stream, Timeout) ->
469
469
end .
470
470
471
471
-spec close_stream (stream_handler (), stream_shutdown_flags (),
472
- app_errno (), timer : timeout ())
472
+ app_errno (), timeout ())
473
473
-> ok | {error , badarg | timeout }.
474
474
close_stream (Stream , Flags , ErrorCode , Timeout ) ->
475
475
case shutdown_stream (Stream , Flags , ErrorCode , Timeout ) of
0 commit comments