[ library(notify_ports) | Reference Manual | Alphabetic Index ]

merge_senders(+DyingSender, +SurvivingSender)

Merge DyingSender into SurvivingSender
DyingSender
a send port opened with open_sender/1 or open_tagging_sender/1
SurvivingSender
a send port opened with open_sender/1 or open_tagging_sender/1

Description

Destroy DyingSender, but only after adding its receivers to the receivers of SurvivingSender. In the case of tagging senders, duplicate receivers will be eliminated iff their tags are equal.