Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
4123-megaco-Types-and-spec-for-megaco-cancel-2....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4123-megaco-Types-and-spec-for-megaco-cancel-2.patch of Package erlang
From 652d1e6c75a923d5c1d078258cf67cd6a9d726a3 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Thu, 21 Dec 2023 11:59:54 +0100 Subject: [PATCH 03/46] [megaco] Types and spec for megaco:cancel/2 OTP-18920 --- lib/megaco/doc/src/megaco.xml | 7 +------ lib/megaco/src/app/megaco.erl | 5 +++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/megaco/doc/src/megaco.xml b/lib/megaco/doc/src/megaco.xml index 882e77af6c..04174eeb7a 100644 --- a/lib/megaco/doc/src/megaco.xml +++ b/lib/megaco/doc/src/megaco.xml @@ -1760,13 +1760,8 @@ megaco_incr_timer() = #megaco_incr_timer{} </func> <func> - <name since="">cancel(ConnHandle, CancelReason) -> ok | {error, ErrReason}</name> + <name name="cancel" arity="2" clause_i="1" since=""/> <fsummary>Cancel all outstanding messages for this connection</fsummary> - <type> - <v>ConnHandle = conn_handle()</v> - <v>CancelReason = term()</v> - <v>ErrReason = term()</v> - </type> <desc> <p>Cancel all outstanding messages for this connection</p> <p>This causes outstanding megaco:call/3 requests to return. diff --git a/lib/megaco/src/app/megaco.erl b/lib/megaco/src/app/megaco.erl index 6db673f2fa..4ba63ad538 100644 --- a/lib/megaco/src/app/megaco.erl +++ b/lib/megaco/src/app/megaco.erl @@ -407,6 +407,11 @@ reset_stats(SendHandle) -> %% Cancel all outstanding messages for this connection %%----------------------------------------------------------------- +-spec cancel(ConnHandle, CancelReason) -> ok | {error, Reason} when + ConnHandle :: conn_handle(), + CancelReason :: term(), + Reason :: term(). + cancel(ConnHandle, Reason) -> megaco_messenger:cancel(ConnHandle, {user_cancel, Reason}). -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor