1 # Copyright (C) 2020-2021 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 package PublicInbox::OnDestroy;
7 shift; # ($class, $cb, @args)
8 bless [ @_ ], __PACKAGE__;
12 my ($cb, @args) = @{$_[0]};
13 if (!ref($cb) && $cb) {