Skip to content

Commit

Permalink
Extend supervisor docs for EEP 56
Browse files Browse the repository at this point in the history
  • Loading branch information
juhlig committed Mar 16, 2021
1 parent 045f7f8 commit 7149a80
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions lib/stdlib/doc/src/supervisor.xml
Expand Up @@ -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>
Expand Down Expand Up @@ -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
significat => significant(), % optional
shutdown => shutdown(), % optional
type => worker(), % optional
modules => modules()} % optional</pre>

<p>The old tuple format is kept for backwards compatibility,
see <seetype marker="#child_spec">child_spec()</seetype>,
Expand Down Expand Up @@ -267,6 +269,9 @@ child_spec() = #{id => child_id(), % mandatory
</section>

<datatypes>
<datatype>
<name name="auto_shutdown"/>
</datatype>
<datatype>
<name name="child"/>
</datatype>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 7149a80

Please sign in to comment.