Skip to content

Base: Implement GenericOneshot channels#41143

Merged
yezhizhen merged 1 commit intoservo:mainfrom
Narfinger:generic-oneshot
Dec 9, 2025
Merged

Base: Implement GenericOneshot channels#41143
yezhizhen merged 1 commit intoservo:mainfrom
Narfinger:generic-oneshot

Conversation

@Narfinger
Copy link
Copy Markdown
Contributor

@Narfinger Narfinger commented Dec 8, 2025

This implements a GenericOneshot channel. The size in the crossbeam channel is restricted while in the Ipc case we use the same IpcChannel(for now).

We also use these channels in WebDriver to prove they work.

Testing: Unit Tests and compilation still works.
Fixes: #39019

channel is restricted while in the Ipc Case we use the same IpcChannel
(for now).

We also use these channels in WebDriver to prove they work.

Signed-off-by: Narfinger <[email protected]>
@Narfinger Narfinger requested a review from yezhizhen as a code owner December 8, 2025 15:40
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 8, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 9, 2025
@yezhizhen yezhizhen added this pull request to the merge queue Dec 9, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 9, 2025
Merged via the queue into servo:main with commit c2f546d Dec 9, 2025
34 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 9, 2025
@Narfinger Narfinger deleted the generic-oneshot branch December 9, 2025 12:19
@sagudev
Copy link
Copy Markdown
Member

sagudev commented Jan 23, 2026

I just stumbled upon this and the naming is confusing. Is this proper oneshot like we have in ipc-channel (meaning that it only support one connection) or is it bounded (like it is specified in the docs)?

@Narfinger
Copy link
Copy Markdown
Contributor Author

Oh I see. I guess I got confused by the name. The idea was that this is allowing only one message to go over and then self destructs. It looks like Ipc oneshot does something different.
I can change the name if you have a better name but I don't know.

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.

Create OneshotGenericChannel abstraction

5 participants