注册资源的便捷函数
(resource: Any)
| 134 | |
| 135 | |
| 136 | def register_resource(resource: Any) -> Any: |
| 137 | """注册资源的便捷函数""" |
| 138 | return task_manager.register_resource(resource) |
| 139 | |
| 140 | |
| 141 | async def shutdown_all_tasks(timeout: float = 30.0): |
nothing calls this directly
no test coverage detected