From fd05f06eb6b9ae1c3d16b35fa9e99e2ed856b931 Mon Sep 17 00:00:00 2001 From: Sebastiaan Koppe Date: Mon, 18 Jan 2021 13:17:51 +0100 Subject: [PATCH] Add shared and nothrow to onStop lambda in nursery.connect --- source/concurrency/nursery.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/concurrency/nursery.d b/source/concurrency/nursery.d index af95d57..3a0ecf1 100644 --- a/source/concurrency/nursery.d +++ b/source/concurrency/nursery.d @@ -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)); }