跳转到正文

threaded API ​

完整接口目录 · 插件运行时用法 · 工具包下载

模块说明 ​

text
Synchronous RPC access for trusted legacy plugin threads.

ThreadCalls ​

python
class ThreadCalls

SDK 说明:

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)

Neomega · 使用、开发与参考文档