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

feat!: make callback an opaque type #1405

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

wyfo
Copy link
Contributor

@wyfo wyfo commented Sep 12, 2024

It may allow special case for channel handlers later, in order to use async methods, or change the return type of the callback in order to support async callbacks.

For the record I've tested quickly with an enum inside Callback, and there was a sensitive cost in performance of 1% when using callbacks.

It may allow special case for channel handlers later, in order to use async
methods, or change the return type of the callback in order to support
async callbacks.

For the record I've tested quickly with an enum inside `Callback`,
and there was a sensitive cost in performance of 1% when using callbacks.
@wyfo wyfo requested review from Mallets, milyin and OlivierHecart and removed request for Mallets September 12, 2024 09:27
Copy link

PR missing one of the required labels: {'dependencies', 'bug', 'breaking-change', 'internal', 'enhancement', 'documentation', 'new feature'}

@wyfo wyfo added the breaking-change Indicates that the issue implies a breaking change (be it at compile time or at runtime) label Sep 12, 2024
@Mallets Mallets merged commit b3ded09 into eclipse-zenoh:main Sep 12, 2024
13 checks passed
fuzzypixelz pushed a commit that referenced this pull request Sep 23, 2024
* feat!: make callback an opaque type

It may allow special case for channel handlers later, in order to use async
methods, or change the return type of the callback in order to support
async callbacks.

For the record I've tested quickly with an enum inside `Callback`,
and there was a sensitive cost in performance of 1% when using callbacks.

* Retrigger CI

* Retrigger CI

* Retrigger CI
fuzzypixelz pushed a commit that referenced this pull request Sep 23, 2024
* feat!: make callback an opaque type

It may allow special case for channel handlers later, in order to use async
methods, or change the return type of the callback in order to support
async callbacks.

For the record I've tested quickly with an enum inside `Callback`,
and there was a sensitive cost in performance of 1% when using callbacks.

* Retrigger CI

* Retrigger CI

* Retrigger CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Indicates that the issue implies a breaking change (be it at compile time or at runtime)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants