Skip to content

Commit ca08d3d

Browse files
committed
add NoDiscard attributes
1 parent 4069efb commit ca08d3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/CurrentProcess/Signals.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static function of(Handler $handler): self
3535
*
3636
* @return Attempt<SideEffect>
3737
*/
38+
#[\NoDiscard]
3839
public function listen(Signal $signal, callable $listener): Attempt
3940
{
4041
return $this->handler->listen($signal, $listener);
@@ -45,6 +46,7 @@ public function listen(Signal $signal, callable $listener): Attempt
4546
*
4647
* @return Attempt<SideEffect>
4748
*/
49+
#[\NoDiscard]
4850
public function remove(callable $listener): Attempt
4951
{
5052
return $this->handler->remove($listener);

0 commit comments

Comments
 (0)