Re: [w3c/gamepad] Add sequenceId slot and fix effect promises (PR #201)

@nondebug commented on this pull request.



>                <ol>
                 <li>Let |effectPromise| be
                 [=this=].{{GamepadHapticActuator/[[playingEffectPromise]]}}.
                 </li>
+                <li>Set
+                [=this=].{{GamepadHapticActuator/[[playingEffectPromise]]}} to
+                `null`.
+                </li>
+                <li>[=Queue a global task=] on the [=relevant global object=]
+                of [=this=] using the [=gamepad task source=] to [=resolve=]
+                |effectPromise| with {{GamepadHapticsResult/"preempted"}}.
+                </li>
+              </ol>
+            </li>
+            <li>Let [=this=].{{GamepadHapticActuator/[[playingEffectPromise]]}}

Done

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/201#discussion_r1614196859
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/gamepad/pull/201/review/2078268190@github.com>

Received on Saturday, 25 May 2024 00:39:02 UTC