You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Belongs to the <a>WoT Consumer</a> conformance class.
1294
+
An {{ActionInteractionOutput}} object is always created by a consumer implementation
1295
+
and exposes functionality to interact with long running (asynchronous) actions.<br/>
1296
+
Note: The output of a synchronous action MAY be limited to the functionality of a regular {{InteractionOutput}} object, e.g., invoking the `cancel()` method might not have an effect.
1297
+
</p>
1298
+
<p>
1299
+
This interface exposes functions which
1300
+
will allow cancelling asynchronous actions and query the status of a long running action.
1301
+
</p>
1302
+
<preclass="idl">
1303
+
/**
1304
+
* Note: retrieving the result of an action via the implicit InteractionOutput interface
1305
+
* will only work after the action has been completed
Reports the status of an <a>Action</a>, or rejects on error. The method MUST run the following steps:
1322
+
<ol>
1323
+
<li>
1324
+
Return a {{Promise}} |promise:Promise| and execute the next steps
1325
+
[=in parallel=].
1326
+
</li>
1327
+
<li>
1328
+
If invoking this method is not supported (e.g., synchronous action)
1329
+
[=reject=] |promise| with a {{NotSupportedError}} and stop.
1330
+
</li>
1331
+
<li>
1332
+
Let |res| be the result of making a request to the underlying platform (via the <a>Protocol Bindings</a>) to query the <a>Action</a> status given optional |params| and |options|. If quering |res| fails, [=reject=] |promise| with {{OperationError}} and stop.
0 commit comments