The action server looks up the dispatcher in its internal registry, cancels the stream, and returns immediately. WebhookStream detects the cancellation on the next iteration, drains the internal queue ...