Signal::Pending(3pm)

✨ Signal::Pending ✨

ok so bestie, welcome to Signal::Pending β€” it's Signal pending status made easy πŸ’… like literally that's the whole vibe. it's a Perl thing from the User Contributed Perl Documentation corner of the world and it's here to make your signals behave. πŸŽ€


🌸 VERSION 🌸

this is version 0.009 β€” yes it's giving vintage but she WORKS 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole moment, copied exactly so you can just vibe:

 use Signal::Mask;
 use Signal::Pending;

 {
     local $Signal::Mask{INT} = 1;
     do {
                 something();
     } while (not $Signal::Pending{INT})
 }
 #signal delivery gets postponed until now

like... do you see her? she's iconic. 😌


πŸ’– DESCRIPTION πŸ’–

okay so real talk: Signal::Pending is an abstraction around your process'/thread's pending signals. that's the whole job, no cap. 🧚

you can use it in combination with signal masks to handle signals in a controlled manner β€” like, you're the main character, you decide when the signal gets to show up to the party. πŸ‘‘

and the set of pending signals? it's just available as the global hash %Signal::Pending. that's it. that's the API. go off. πŸ”₯

ngl the way this works is: mask the signal, do your little loop, and the delivery just gets postponed until you're ready. controlled chaos, but make it cute. πŸ’…

πŸŽ€ AUTHOR πŸŽ€

Leon Timmermans <fawaka@gmail.com> β€” the legend herself, we stan 🫢


This software is copyright (c) 2010 by Leon Timmermans. πŸ“

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, legally. πŸ’–


okay bestie that's the whole page, no notes ✨ this came to you via perl v5.40.1, dated 2026-03-13, straight from the Signal::Pending(3pm) page in the User Contributed Perl Documentation collection. mwah πŸ’‹ go handle those signals responsibly, queen πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from