File 4532-Extend-supervisor-docs-for-EEP-56.patch of Package erlang

From d2b9cd21c23ae5853dcf962d7e40a7de891f7266 Mon Sep 17 00:00:00 2001
From: juhlig <juhlig@hnc-agency.org>
Date: Thu, 18 Mar 2021 14:58:32 +0100
Subject: [PATCH 02/13] Extend supervisor docs for EEP 56

---
 lib/stdlib/doc/src/supervisor.xml | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/lib/stdlib/doc/src/supervisor.xml b/lib/stdlib/doc/src/supervisor.xml
index 6a44219084..352c5c9549 100644
--- a/lib/stdlib/doc/src/supervisor.xml
+++ b/lib/stdlib/doc/src/supervisor.xml
@@ -74,9 +74,10 @@
       The type definition for the supervisor flags is as follows:</p>
 
     <pre>
-sup_flags() = #{strategy => strategy(),         % optional
-                intensity => non_neg_integer(), % optional
-                period => pos_integer()}        % optional</pre>
+sup_flags() = #{strategy => strategy(),           % optional
+                intensity => non_neg_integer(),   % optional
+                period => pos_integer(),          % optional
+                auto_shutdown => auto_shutdown()} % optional</pre>
 
     <p>A supervisor can have one of the following <em>restart strategies</em>
       specified with the <c>strategy</c> key in the above map:</p>
@@ -141,12 +142,13 @@ sup_flags() = #{strategy => strategy(),         % optional
     <p>The type definition of a child specification is as follows:</p>
 
     <pre>
-child_spec() = #{id => child_id(),       % mandatory
-                 start => mfargs(),      % mandatory
-                 restart => restart(),   % optional
-                 shutdown => shutdown(), % optional
-                 type => worker(),       % optional
-                 modules => modules()}   % optional</pre>
+child_spec() = #{id => child_id(),             % mandatory
+                 start => mfargs(),            % mandatory
+                 restart => restart(),         % optional
+                 significant => significant(), % optional
+                 shutdown => shutdown(),       % optional
+                 type => worker(),             % optional
+                 modules => modules()}         % optional</pre>
 
     <p>The old tuple format is kept for backwards compatibility,
       see <seealso marker="#type-child_spec">child_spec()</seealso>,
@@ -267,6 +269,9 @@ child_spec() = #{id => child_id(),       % mandatory
   </section>
 
   <datatypes>
+    <datatype>
+      <name name="auto_shutdown"/>
+    </datatype>
     <datatype>
       <name name="child"/>
     </datatype>
@@ -299,6 +304,9 @@ child_spec() = #{id => child_id(),       % mandatory
     <datatype>
       <name name="shutdown"/>
     </datatype>
+    <datatype>
+      <name name="significant"/>
+    </datatype>
     <datatype>
       <name name="startchild_err"/>
     </datatype>
-- 
2.26.2

openSUSE Build Service is sponsored by