Event:...Action(3pm)

πŸ’– Event::Distributor::Action β€” the perl one, from the User Contributed Perl Documentation crew πŸŽ€

okay so bestie, this is Event:...Action(3pm) β€” a little Perl module page, and it's short but it slaps. πŸ’…


✨ NAME ✨

Event::Distributor::Action β€” an event that requires one subscriber. fr fr, that's the whole thing. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so Event::Distributor::Action is a subclass of Event::Distributor::_Event, right? and the vibe here is exactly one subscriber β€” like, it needs precisely one subscriber at the time that it is invoked. not before, not "sometime around then". at invoke time. periodt. πŸ’€

here's what it does, and it's giving flawless:

  • it passes on the caller's arguments to the subscriber 🫢
  • and it passes the subscriber's return value back to the caller 🌸

that's it. in, out, done. main character energy, no notes. ✨


🌈 AUTHOR 🌈

Paul Evans <leonerd@leonerd.org.uk> β€” thank you for your service, king. πŸ‘‘


and that's the whole page bestie, no cap. it's perl v5.32.1, dated 2021-09-29, and it came to you courtesy of the User Contributed Perl Documentation. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from