Skip to content

Commit

Permalink
Add shared and nothrow to onStop lambda in nursery.connect
Browse files Browse the repository at this point in the history
  • Loading branch information
skoppe committed Jan 18, 2021
1 parent a81184c commit fd05f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/concurrency/nursery.d
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Nursery : StopSource {
}
}
auto stopToken = receiver.getStopToken();
auto cb = stopToken.onStop(() shared => cast(void)this.stop());
auto cb = stopToken.onStop(() shared nothrow @trusted => cast(void)this.stop());
return Op(this, cb, new ReceiverImpl(receiver));
}

Expand Down

0 comments on commit fd05f06

Please sign in to comment.