Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang
erlang
4149-megaco-Types-and-spec-for-megaco-stop-0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4149-megaco-Types-and-spec-for-megaco-stop-0.patch of Package erlang
From 92b020a559794831a8a7589127b56de32b18356e Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Thu, 4 Jan 2024 18:06:25 +0100 Subject: [PATCH 29/46] [megaco] Types and spec for megaco:stop/0 OTP-18920 --- lib/megaco/doc/src/megaco.xml | 2 +- lib/megaco/src/app/megaco.erl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/megaco/doc/src/megaco.xml b/lib/megaco/doc/src/megaco.xml index 3ae1bd6b8d..367df4175b 100644 --- a/lib/megaco/doc/src/megaco.xml +++ b/lib/megaco/doc/src/megaco.xml @@ -1178,7 +1178,7 @@ megaco_incr_timer() = #megaco_incr_timer{} </func> <func> - <name since="">stop() -> ok | {error, Reason}</name> + <name name="stop" arity="0" clause_i="1" since=""/> <fsummary>Stops the Megaco application</fsummary> <type> <v>Reason = term()</v> diff --git a/lib/megaco/src/app/megaco.erl b/lib/megaco/src/app/megaco.erl index f4a40fcbfe..39e2ece23b 100644 --- a/lib/megaco/src/app/megaco.erl +++ b/lib/megaco/src/app/megaco.erl @@ -259,6 +259,9 @@ start() -> %% Stops the Megaco application %%----------------------------------------------------------------- +-spec stop() -> ok | {error, Reason} when + Reason :: term(). + stop() -> application:stop(?APPLICATION). -- 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