holoscan::essential::CallbackRegistration
holoscan::essential::CallbackRegistration
Own a native subscription’s disconnect-then-drain obligation.
A supported backend prevents new entry at disconnect and waits for every entered callback at drain. Destruction releases its native owner only after both operations return. This move-only owner requires external synchronization for move, assignment and destruction; those operations may wait for backend drain and must not run on an entered callback itself.
Constructors
CallbackRegistration
Default
Move
Copy (deleted)
Destructor
~CallbackRegistration
Assignment operators
operator=
Move assign
Copy assign (deleted)
Methods
reset
Static methods
own
Take ownership of a typed native backend implementing the reliable drain contract.
Returns: A move-only registration whose destructor disconnects and drains once.
Throws: RuntimeError with ErrorCode::kInvalidArgument if backend is empty.
Parameters
Native subscription. An empty owner is rejected.