Event:...Signal(3pm)

✨ NAME ✨

okay bestie, say hi to Event::Distributor::Signal πŸ’– β€” an event that returns no result. periodt.


πŸ’… DESCRIPTION πŸ’…

so this is a subclass of Event::Distributor::_Event, and the way it works is lowkey iconic: it invokes each of its subscribers in turn, making sure each one has a chance to be invoked no matter what the result of the others was. equal opportunity behavior, fr fr. 🫢

now for the Future tea β˜•:

  • Its Future succeeds (with no value) if no subscriber failed. slay. ✨
  • If one subscriber failed, the Future fails in the same way. 😭
  • If two or more subscribers fail, the resulting Future fails with a message composed by combining all the individual messages, in the distributor category, whose failure details are a list of the failed component futures. πŸ’€
no cap, that last one is giving "we all fall down together" energy. not me being dramatic about failure details. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Paul Evans <leonerd@leonerd.org.uk> β€” author icon behavior. 🌈


mwah πŸ’‹ this lil doc moment came from perl v5.32.1, dated 2021-09-29, and it's the Event:...Signal(3pm) page. bye bestie, go invoke some subscribers responsibly. πŸŽ€

πŸ“¦ where this page comes from