estdlib: add gen:start/5,6 - #2386
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
preexisting and nitpicks: PR re-review:
|
The Elixir GenServer implementation calls them. The monitor linkage folds
proc_lib:start_monitor/3's {Result, MonitorRef} into OTP's {ok, {Pid, Mon}}.
A named start no longer spawns a child when the name is taken, and a failed
registration terminates the child through init_fail so no EXIT or DOWN is left
in the caller's mailbox. init/1 returning ignore now yields ignore, and the
timeout and spawn_opt options are honoured.
Forwarding spawn_opt made proc_lib's failure cleanup reachable with a link the
caller did not ask for, so it now unlinks unconditionally like OTP instead of
tracking whether it created the link.
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
The Elixir GenServer implementation calls them. The monitor linkage folds proc_lib:start_monitor/3's {Result, MonitorRef} into OTP's {ok, {Pid, Mon}}.
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later