Sets the :proc_lib initial call to the {mod, fun, arity} of the task.
This allows :proc_lib.translate_initial_call(task.pid) to show the mfa
of a task process when debugging. Tools such as :observer and the erlang
shell make use of this function when getting information on a process.
This gives a useful initial call in the crash report sent to the error
logger when a task raises.
Makes the cleanup of the Stream resource more efficient by reusing the
monitored process and its link to ensure the handler has been removed.
The flushing of messages, after removing the handler, is also only done
when needed.
The rules are similar to those for the unordered lists (see previous
commits). Subsequent lines and paragraphs should be aligned to the
beginning of the sentence on the first line, like this:
1. This is a list item,
it has a second line.
Also paragraph.
2. Second list item.
code fragment
Short, one-sentence items that can be read as part of the surrounding
paragraph can start with a non-capital letter
* Never use capital letters after `-`. Sentences start right after
the bullet and continue to the first period.
* When list elements are one or two sentences, use non-capitalized
format without terminators.
The two sentences are converted into one, separated by a semicolon.
This mainly applies to the cases with short sentences or when only
one of many list elements needs to have two sentences.
Example:
* `:opt_a` - basic description, no terminator
* `:opt_b` - also short description; this used to be second
sentence
* When at least one list element needs to have real sentences,
the whole list is formatted like that, with a period at the end
of each element:
* `:opt_a` - this is still short.
* `:opt_b` or `:opt_c` - but this is longer. May have multiple
sentences.
Or even paragraphs.
List items are marked with a star (*). Bullets marking list elements
must have a 2-space indent. The continuation lines should be indented
by 2 more spaces.
The second and subsequent paragraphs need to be indented 4 spaces
from the beginning of the line to be included in the list item.
The code fragments have to be indented 8 spaces from the beginning
of the line (or 4 spaces from the beginning of the preceding paragraph).
Sublists are marked with a hyphen (-). They follow the rules above
with the difference that their initial indent will be greater
(8 spaces from the beginning of the line).