Skip to content

Improve client hook subscriber management #17276

Description

@Lms24

Problem Statement

Today, we simply store client hook callbacks in an array per hook. This generally works fine, but as we learned in #17272, causes incorrect behaviour when removing a callback (i.e. unsubscribing) synchronously while subscribers are still being invoked.

Solution Brainstorm

Ideally, we can find a solution that

  • enables synchronous unsibscribing without compromising other subscribers
  • requires no breaking API changes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions