Arch::RunLimit(3pm)
โจ Arch::RunLimit ๐
okay so bestie, this is the Arch::RunLimit page from the Perl user-contributed docs (that's the 3pm manual, section three, Perl modules, iykyk). It's a whole class whose entire job is making sure you don't have like a million processes running at once. She's a bouncer. A very polite, very Perl bouncer. ๐
๐ธ NAME ๐ธ
Arch::RunLimit โ a class to enforce a limit on the number of running processes. No cap, that's literally her whole thing. She counts your processes and she says "enough." ๐
๐ฆ SYNOPSIS ๐ฆ
use Arch::RunLimit
my $limit = Arch::RunLimit->new(file => $limit_file);
die "run-limit exceeded" if $limit->exceeded;
see how easy that is?? make one, ask if she's exceeded, and if she is โ die. dramatic but effective. ๐
๐ DESCRIPTION ๐
Arch::RunLimit provides an easy way to enforce a limit on the number of concurrently running processes. That's it. That's the vibe. She's not doing your taxes, she's not managing your whole life, she is just keeping count and telling you when you've gone over. main character energy, minimal responsibility. periodt. โจ
๐ซถ METHODS ๐ซถ
the following methods are available:
new, exceeded.
that's the whole roster. two icons. two legends. ๐
โญ new %opts
create a new Arch::RunLimit object with the specified options:
file(mandatory) โ the file used to keep track of the number of processes. bestie you HAVE to give her this one, it's not optional, she needs somewhere to write down the count. no file, no object, no discussion. ๐limitโ the maximum number of concurrently running processes. defaults to5. so if you don't say anything, she's gonna let five run and then start side-eyeing the sixth. โtimeoutโ the timeout after which a process is assumed to be terminated, in seconds. defaults to1800(that's 30 minutes, for the non-math girlies ๐งฎ). so if a process has been vibing in there longer than that, she assumes it's gone and stops counting it. ๐ฐ๏ธ
๐ exceeded
return 1 if the number of concurrently running processes has been exceeded, 0 otherwise.
so like. 1 = we are SO over the limit. 0 = we're good, carry on, slay. binary queen. ๐
๐ญ BUGS ๐ญ
awaiting your reports. she's literally sitting there with her little inbox open, tapping her nails, waiting for you to tell her what's wrong. don't leave her on read. ๐
๐ AUTHORS ๐
- Mikhael Goikhman (
migo@homemail.com--Perl-GPL/arch-perl--devel). - Enno Cramer (
uebergeek@web.de--2003/arch-perl--devel).
two absolute legends built her, show some respect fr fr. ๐ธ
and that's the whole page, bestie!! this one shipped as part of perl v5.20.2, dated 2005-06-21 โ yes she's vintage, yes she still ate, we love an OG. mwah ๐โจ๐
๐ฆ where this page comes from
- ubuntu jammy: libarch-perl 0.5.2-2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms