Skip to content

Commit

Permalink
Fix PromiseSender for ldc >= 1.35.0
Browse files Browse the repository at this point in the history
There has been in change in what auto ref means.
Since we have a class this, we can just return the
unshared this.
  • Loading branch information
skoppe committed Sep 25, 2023
1 parent f764c31 commit 2049450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/concurrency/sender.d
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ class Promise(T) {
}
}

private auto ref unshared() @trusted nothrow shared {
private auto unshared() @trusted nothrow shared {
return cast() this;
}
}
Expand Down

0 comments on commit 2049450

Please sign in to comment.