Expand description
Compatibility-only synchronous bridge shim, shared by the outward protocol
edges (chio-a2a-edge, chio-acp-edge). The edges gate their use of it on
their own compatibility-surface feature; the helper itself is always
compiled here so both edges can depend on a single definition instead of
textually including this file.
Mirrors the kernel’s sync-bridge gate so the explicit passthrough surface fails closed under a current-thread runtime instead of deadlocking.
Structs§
- Sync
Bridge Incompatible With Current Thread Runtime - Sentinel error returned by
block_on_tool_server_invokewhen the passthrough is invoked from inside a current-thread Tokio runtime. Mirrorschio_kernel::KernelError::SyncBridgeIncompatibleWithCurrentThreadRuntime: polling an async tool-server future withfutures::executor::block_onon the only worker thread can deadlock indefinitely if the future awaits Tokio I/O. The kernel bridge refuses this case fail-closed, and the edge shims must match instead of reintroducing the deadlock through thecompatibility-surfacefeature.
Functions§
- block_
on_ tool_ server_ invoke - Mirrors
chio_kernel::kernel::block_on_async_tool_dispatch: on a multi-thread runtime useblock_in_placeso we yield the runtime; on a current-thread runtime fail-closed withSyncBridgeIncompatibleWithCurrentThreadRuntimeinstead of silently parking the only worker thread; with no runtime active, drive the future with the non-tokiofutures::executor::block_on.