外观
threaded API
模块说明
text
Synchronous RPC access for trusted legacy plugin threads.ThreadCalls
python
class ThreadCallsSDK 说明:
text
Construct on the ManagedPeer's running loop; call only from other threads.
The owner must keep that loop alive and close/join the peer before stopping
it. This adapter owns neither the loop nor plugin threads. A timed-out call
may already have mutated host state. Never retry automatically. It does not
implement a ToolDelta launcher or change legacy event delivery semantics.ThreadCalls.__init__
python
def __init__(self, peer, *, max_pending=128)ThreadCalls.call
python
def call(self, method, payload, *, timeout=10)