@@ -464,23 +464,25 @@ default values.
464
464
| {options , client_options ()}
465
465
| {algorithms , conn_info_algs ()}
466
466
| {channels , conn_info_channels ()}.
467
-
467
+
468
468
-doc (#{equiv => connection_info / 2 }).
469
469
-doc (#{since => <<" OTP 22.1" >>}).
470
- -spec connection_info (ConnectionRef ) -> InfoTupleList when
470
+ -spec connection_info (ConnectionRef ) ->
471
+ InfoTupleList | {error , term ()} when
471
472
ConnectionRef :: connection_ref (),
472
473
InfoTupleList :: [InfoTuple ],
473
474
InfoTuple :: connection_info_tuple ().
474
475
475
- connection_info (ConnectionRef ) ->
476
+ connection_info (ConnectionRef ) ->
476
477
connection_info (ConnectionRef , []).
477
478
478
479
-doc """
479
480
Returns information about a connection intended for e.g debugging or logging.
480
481
481
482
When the `Key` is a single `Item`, the result is a single `InfoTuple`
482
483
""" .
483
- -spec connection_info (ConnectionRef , ItemList |Item ) -> InfoTupleList |InfoTuple when
484
+ -spec connection_info (ConnectionRef , ItemList |Item ) ->
485
+ InfoTupleList | InfoTuple | {error , term ()} when
484
486
ConnectionRef :: connection_ref (),
485
487
ItemList :: [Item ],
486
488
Item :: client_version | server_version | user | peer | sockname | options | algorithms | sockname ,
0 commit comments