bluesky.plan_stubs.subscribe#
- bluesky.plan_stubs.subscribe(name: str, func: Callable[[str, Mapping[str, Any]], None]) Generator[Msg, Any, int][source]#
- Subscribe the stream of emitted documents. - Parameters:
- name{‘all’, ‘start’, ‘descriptor’, ‘event’, ‘stop’}
- funccallable
- Expected signature: - f(name, doc)where- nameis one of the strings above (‘all, ‘start’, …) and- docis a dict
 
- Returns:
- token
- Unique identifier for a subscription 
 
- Yields:
- msgMsg
- Msg(‘subscribe’, None, func, name) 
 
 - See also