外观
action_control API
模块说明
text
Cooperative control ownership for movement and item sequences in one worker.ActionControl
python
class ActionControl(asyncio.Lock)SDK 说明:
text
One shared lock per robot, with a fail-closed reconciliation latch.
Process-local only: this does not fence other plugins or direct packet calls.
Controllers block before releasing uncertain input ownership. Reconciliation
must query retained operations AND independent current input/world evidence;
cancellation admission alone does not prove the action or held use stopped.ActionControl.__init__
python
def __init__(self)ActionControl.blocked
python
@property
def blocked(self)ActionControl.blocked_record
python
@property
def blocked_record(self)ActionControl.block
python
def block(self, record)SDK 说明:
text
Retain recovery evidence while owning the lock; no automatic reset.ActionControl.acquire
python
async def acquire(self)ActionControl.reconcile
python
async def reconcile(self, check)SDK 说明:
text
Explicit async check(record) must return True after independent proof.
This SDK cannot infer server stop from a receipt. The caller owns the
environment-specific proof, including unknown admissions and native use.
Never use an unconditional callback or replace this shared lock to bypass
recovery. Failure/cancellation preserves the latch and full original keys.另继承外部类型 asyncio.Lock;其通用方法不在本 SDK 目录中重复展开。