Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite channels to expose a sender interface #1154

Open
1 task done
msimberg opened this issue Jun 10, 2024 · 2 comments
Open
1 task done

Rewrite channels to expose a sender interface #1154

msimberg opened this issue Jun 10, 2024 · 2 comments
Assignees
Labels
category: senders/receivers P2300 effort: 4 A few weeks of work. priority: low Nice to have, but nobody is going to be sad if this is never done. type: feature

Comments

@msimberg
Copy link
Contributor

msimberg commented Jun 10, 2024

Currently the various channel implementations in pika expose a low level API, similar to lockfree queues, where one can get an item through bool channel(T*). A more interesting API would return senders to signal that an item is available from the channel.

For transitioning we could:

  • Remove the current implementations and add a senderized version separately (Remove channel implementations #1209)
  • Keep the current implenmentations until we have a senderized version
  • Keep the non-sender version indefinitely
@msimberg msimberg added effort: 4 A few weeks of work. priority: low Nice to have, but nobody is going to be sad if this is never done. type: feature category: senders/receivers P2300 labels Jun 10, 2024
@msimberg
Copy link
Contributor Author

Related: #989.

@msimberg
Copy link
Contributor Author

I'm leaving this open to track the possibility of a adding a senderified channel implementation (despite removing the current non-sender implementation in #1209).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: senders/receivers P2300 effort: 4 A few weeks of work. priority: low Nice to have, but nobody is going to be sad if this is never done. type: feature
Projects
Status: Backlog
Development

No branches or pull requests

2 participants