Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 346 Bytes

README-signal-with-return-value.md

File metadata and controls

7 lines (5 loc) · 346 Bytes

signal-with-return-value

Returning values from signals is considered bad design, as there might be more than 1 slot connected to it. In general signals should just emit that some state has changed and know nothing about who's connected to it.

Needing a return value is a design smell that you probably should be using a direct call instead.