bluesky.plans.subscribe¶
-
bluesky.plans.
subscribe
(name, func)¶ Subscribe the stream of emitted documents.
Parameters: - name ({'all', 'start', 'descriptor', 'event', 'stop'}) –
- func (callable) – Expected signature:
f(name, doc)
wherename
is one of the strings above (‘all, ‘start’, ...) anddoc
is a dict
Yields: msg (Msg) – Msg(‘subscribe’, None, name, func)
See also
bluesky.plans.unsubscribe