72caef0de0
The disconnect_matched() function is a bit too complicated, and its simpler wrapper disconnect_by_func() is functionally equivalent in the cases used by the cookbook examples.