Skip to content

Commit cda1c7a

Browse files
youennfhoch
authored andcommitted
Make it clear promise is resolved as part of control message steps
1 parent d5148c3 commit cda1c7a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

index.bs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ Methods</h4>
19791979
5. Set the {{[[control thread state]]}} on the
19801980
{{AudioContext}} to <code>running</code>.
19811981

1982-
6. <a>Queue a control message</a> to resume the {{AudioContext}}.
1982+
6. <a>Queue a control message</a> to resume the {{AudioContext}} with <var>promise</var>.
19831983

19841984
7. Return <var>promise</var>.
19851985
</div>
@@ -1989,6 +1989,8 @@ Methods</h4>
19891989
{{AudioContext}} means running these steps on the
19901990
<a>rendering thread</a>:
19911991

1992+
1. Let <var>promise</var> be the promise passed into this algorithm.
1993+
19921994
1. Attempt to <a href="#acquiring">acquire system resources</a>.
19931995

19941996
2. Set the {{[[rendering thread state]]}} on the {{AudioContext}} to <code>running</code>.
@@ -2064,7 +2066,7 @@ Methods</h4>
20642066

20652067
5. Set the {{[[control thread state]]}} on the {{AudioContext}} to <code>suspended</code>.
20662068

2067-
6. <a>Queue a control message</a> to suspend the {{AudioContext}}.
2069+
6. <a>Queue a control message</a> to suspend the {{AudioContext}} with <var>promise</var>.
20682070

20692071
7. Return <var>promise</var>.
20702072
</div>
@@ -2074,6 +2076,8 @@ Methods</h4>
20742076
{{AudioContext}} means running these steps on the
20752077
<a>rendering thread</a>:
20762078

2079+
1. Let <var>promise</var> be the promise passed into this algorithm.
2080+
20772081
1. Attempt to <a>release system resources</a>.
20782082

20792083
2. Set the {{[[rendering thread state]]}} on the {{AudioContext}} to <code>suspended</code>.

0 commit comments

Comments
 (0)