ccproxy.core.plugins.hooks.thread_manager¶
ccproxy.core.plugins.hooks.thread_manager
¶
Background thread manager for async hook execution.
HookTask
dataclass
¶
Represents a hook execution task.
BackgroundHookThreadManager
¶
Manages a dedicated async thread for hook execution.
Source code in ccproxy/core/plugins/hooks/thread_manager.py
start
¶
Start the background thread with its own event loop.
Source code in ccproxy/core/plugins/hooks/thread_manager.py
stop
¶
Gracefully shutdown the background thread.
Source code in ccproxy/core/plugins/hooks/thread_manager.py
emit_async
¶
Queue a hook task for background execution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
HookContext
|
Hook context to execute |
required |
registry
|
Any
|
Hook registry to get hooks from |
required |