publish_command()#

publish_command(func: Callable) → Callable[source]#

Decorator that publishes the Command returned by an instrument method.

Channel naming is the call site’s responsibility; the wrong return type raises rather than silently publishing as the wrong kind.