If messages come in in a faster rate than callbacks can consume them, we end up in a deadlock. Considering only a finite amount of messages (those present at begin of triggerCallback) will avoid the deadlock.
If messages come in in a faster rate than callbacks can consume them, we end up in a deadlock.
Considering only a finite amount of messages (those present at begin of triggerCallback) will
avoid the deadlock.

Xamla/torch-ros