4.1.23 on_leave(Hook, Prio)

-spec on_leave(fun((OldCluster, Local,
                    kick_intent()) -> _),
               classy_hook:conf()) -> classy_hook:hook() when OldCluster ::
                                                                  cluster_id(),
                                                              Local ::
                                                                  site().

Register a hook that is executed after the local site leaves a cluster. This hook can perform destructive actions associated with cleanup.

JavaScript license information