]> Sergey Matveev's repositories - public-inbox.git/blob - lib/PublicInbox/LeiFinmsg.pm
lei up: improve --all=local stderr output
[public-inbox.git] / lib / PublicInbox / LeiFinmsg.pm
1 # Copyright (C) all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
3
4 # Finalization messages, used to queue up a bunch of messages which
5 # only get written out on ->DESTROY
6 package PublicInbox::LeiFinmsg;
7 use strict;
8 use v5.10.1;
9
10 sub new {
11         my ($cls, $io) = @_;
12         bless [ $io ], $cls;
13 }
14
15 sub DESTROY {
16         my ($self) = @_;
17         my $io = shift @$self;
18         print $io @$self;
19 }
20
21 1;