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
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.
1286
1286
</p>
1287
1287
<p>
1288
-
This interface exposes an action status object. Its implementation
1289
-
will allow cancelling asynchronous actions and report the status of a long running action.
1288
+
This interface exposes functions which
1289
+
will allow cancelling asynchronous actions and query the status of a long running action.
Reports the status of an <a>Action</a> (one of <code>running</code>, <code>success</code>, or <code>error</code>), or rejects on error. The method MUST run the following steps:
1306
+
1307
+
<section><h3>The <dfn>query()</dfn> function</h3>
1308
+
Reports the status of an <a>Action</a>, or rejects on error. The method MUST run the following steps:
1316
1309
<ol>
1317
1310
<li>
1318
1311
Return a {{Promise}} |promise:Promise| and execute the next steps
1319
1312
[=in parallel=].
1320
1313
</li>
1321
1314
<li>
1322
-
TODO
1315
+
If invoking this method is not supported (e.g., synchronous action)
1316
+
[=reject=] |promise| with a {{NotSupportedError}} and stop.
1317
+
</li>
1318
+
<li>
1319
+
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