Skip to content

make cb_cink return a CbSink instead of a reference to a CbSink - #876

Merged
gyscos merged 1 commit into
gyscos:mainfrom
Cheese-Space:main
Jul 14, 2026
Merged

make cb_cink return a CbSink instead of a reference to a CbSink#876
gyscos merged 1 commit into
gyscos:mainfrom
Cheese-Space:main

Conversation

@Cheese-Space

Copy link
Copy Markdown
Contributor

you can clone a crossbeam_channel::sender (the sender returned by the cb_cink function) cheaply, so in my opinion it would be better to not return a reference

@gyscos

gyscos commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Hi, and thanks for the work!

Sure, I agree the ergonomics improvement is most likely worth the tiny performance cost.

@gyscos
gyscos merged commit 8114bc7 into gyscos:main Jul 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants