[PR #8811] Fix #8695: til::spsc assignment operators don't return anything #27302

Open
opened 2026-01-31 09:21:13 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/8811

State: closed
Merged: Yes


The following code didn't previously work as the assignment operators
didn't return a self reference:

auto channel = til::spsc::channel<QueueItem>(100);
auto producer = std::move(channel.first);
channel.first = std::move(producer);

Validation Steps Performed

I've added a basic smoke test for til::spsc.

Closes #8695

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8811 **State:** closed **Merged:** Yes --- The following code didn't previously work as the assignment operators didn't return a self reference: ```cpp auto channel = til::spsc::channel<QueueItem>(100); auto producer = std::move(channel.first); channel.first = std::move(producer); ``` ## Validation Steps Performed I've added a basic smoke test for `til::spsc`. Closes #8695
claunia added the pull-request label 2026-01-31 09:21:13 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27302