Senph::Model::MailQueue
sub create_notify_new_comment { my ( $self, $args ) = @_; ... $self->cache->{$topic_ident} = 1; my $timer = IO::Async::Timer::Countdown->new( delay => 5 * 60, on_expire => sub { $self->cache->{$topic_ident} = 0; $log->debugf("Stop blocking %s ", $topic_ident); }, ); $timer->start; $self->loop->add( $timer ); }