You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure that callbacks are never called when subscriber/queryable/session is dropped. Also ensure that these callbacks will be dropped before corresponding drop/undeclare call returns.
Calling callbacks after subscriber/queryable destruction can result in UB, since there is no borrow checker to ensure that data captured by callbacks is still alive at the moment of callback invocation/destruction.
To reproduce
It is sufficient to undeclare subscriber/queryable roughly at the same moment when a new message/query arrives.