本文整理汇总了Python中mopidy.utils.process.stop_actors_by_class函数的典型用法代码示例。如果您正苦于以下问题:Python stop_actors_by_class函数的具体用法?Python stop_actors_by_class怎么用?Python stop_actors_by_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了stop_actors_by_class函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stop_frontends
def stop_frontends():
for frontend_class_name in settings.FRONTENDS:
try:
frontend_class = importing.get_class(frontend_class_name)
process.stop_actors_by_class(frontend_class)
except exceptions.OptionalDependencyError:
pass
示例2: on_stop
def on_stop(self):
if self.zeroconf_service:
self.zeroconf_service.unpublish()
process.stop_actors_by_class(session.MpdSession)
示例3: stop_backends
def stop_backends():
for backend_class_name in settings.BACKENDS:
process.stop_actors_by_class(importing.get_class(backend_class_name))
示例4: stop_core
def stop_core():
process.stop_actors_by_class(Core)
示例5: on_stop
def on_stop(self):
# if self.zeroconf_service:
# self.zeroconf_service.unpublish()
process.stop_actors_by_class(session.DictatorSession)
示例6: stop_audio
def stop_audio():
process.stop_actors_by_class(Audio)
示例7: stop_backends
def stop_backends(self, backend_classes):
logger.info('Stopping Mopidy backends')
for backend_class in backend_classes:
process.stop_actors_by_class(backend_class)
示例8: stop_frontends
def stop_frontends():
for frontend_class_name in settings.FRONTENDS:
try:
stop_actors_by_class(get_class(frontend_class_name))
except OptionalDependencyError:
pass
示例9: stop_frontends
def stop_frontends(self, frontend_classes):
logger.info('Stopping Mopidy frontends')
for frontend_class in frontend_classes:
process.stop_actors_by_class(frontend_class)
示例10: stop_core
def stop_core(self):
logger.info('Stopping Mopidy core')
process.stop_actors_by_class(Core)
示例11: stop_mixer
def stop_mixer():
stop_actors_by_class(get_class(settings.MIXER))
示例12: stop_gstreamer
def stop_gstreamer():
stop_actors_by_class(GStreamer)
示例13: stop_backends
def stop_backends(self, extensions):
logger.info("Stopping Mopidy backends")
for extension in extensions:
for backend_class in extension.get_backend_classes():
process.stop_actors_by_class(backend_class)
示例14: stop_audio
def stop_audio():
stop_actors_by_class(Audio)
示例15: stop_audio
def stop_audio(self):
logger.info('Stopping Mopidy audio')
process.stop_actors_by_class(Audio)