MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / register_resource

Function register_resource

src/task_manager.py:136–138  ·  view source on GitHub ↗

注册资源的便捷函数

(resource: Any)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

register_resourceMethod · 0.80

Tested by

no test coverage detected