diff options
author | Eric Wong <e@80x24.org> | 2020-12-17 10:45:12 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-19 09:32:08 +0000 |
commit | 7e7f4bfca5f2ef0d123445e074280f5e65cdfb85 (patch) | |
tree | 591d12f8dce7c43a5fac167b10481bcaa83b2f03 /MANIFEST | |
parent | 68fea5b055787c65f0e7164cbd5463f140382ea9 (diff) | |
download | public-inbox-7e7f4bfca5f2ef0d123445e074280f5e65cdfb85.tar.gz |
This is a localized version of the process-wide END{}, but runs at the end of variable scope. A subroutine ref and arguments may be passed, which allows us to avoid anonymous subs and problems they cause. It's similar to `defer' or `ensure' in other languages; Perl can rely on deterministic destructors due to refcounting.
Diffstat (limited to 'MANIFEST')
-rw-r--r-- | MANIFEST | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -181,6 +181,7 @@ lib/PublicInbox/NNTP.pm lib/PublicInbox/NNTPD.pm lib/PublicInbox/NNTPdeflate.pm lib/PublicInbox/NewsWWW.pm +lib/PublicInbox/OnDestroy.pm lib/PublicInbox/Over.pm lib/PublicInbox/OverIdx.pm lib/PublicInbox/ProcessPipe.pm @@ -343,6 +344,7 @@ t/nntpd-v2.t t/nntpd.t t/nodatacow.t t/nulsubject.t +t/on_destroy.t t/over.t t/plack-2-txt-bodies.eml t/plack-attached-patch.eml |