Event:...::Query(3pm)

✨ NAME ✨

Event::Distributor::Query β€” bestie, it's an event that collects a result πŸ’–

(and yeah, the page header calls it Event:...::Query(3pm) because the name got squished, but you know her 🫢)


🌸 DESCRIPTION 🌸

okay so picture this: this subclass of Event::Distributor::_Event is the friend who goes around the group chat asking everyone one by one, no skipping πŸ’…

It invokes each of its subscribers in turn, and yields:

  • the first successful and non-empty result β€” like, first one to actually say something useful wins, and we stop there πŸ‘‘
  • or a failure if they all fail 😭 like every single one, no survivors
  • and if there are no subscribers at all? it yields a (successful) empty result ✨ lowkey iconic, an event with no audience just vibes
no cap: the first one that succeeds AND isn't empty is the one that gets through. empty-but-successful from a subscriber doesn't count as the answer β€” it keeps asking. πŸŽ€

πŸ¦‹ AUTHOR πŸ¦‹

Paul Evans <leonerd@leonerd.org.uk> β€” the icon who made this, periodt πŸ’œ


perl v5.32.1 Β· 2021-09-29 Β· from the User Contributed Perl Documentation corner of the internet 🌈 that's the source and the date bestie, we stan a documented manpage πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from