This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
spec:async-algos [2014/05/28 12:25] – [Writing the Algo] tabatkins | spec:async-algos [2014/12/09 15:48] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 54: | Line 54: | ||
> 5. Once the attempt to load either completes with either success or failure, await a stable state, then synchronously execute the following steps: | > 5. Once the attempt to load either completes with either success or failure, await a stable state, then synchronously execute the following steps: | ||
> | > | ||
- | > a. If the attempt to load failed, set font face's status attribute to " | + | > 5a. If the attempt to load failed, set font face's status attribute to " |
- | > b. Otherwise, set font face's status attribute to " | + | > |
+ | > 5b. Otherwise, set font face's status attribute to " | ||
The "await a stable state" language ensures that author code has reached a point where other code can run, and that nothing else is in the queue to be run. This ensures that, for example, the promise' | The "await a stable state" language ensures that author code has reached a point where other code can run, and that nothing else is in the queue to be run. This ensures that, for example, the promise' |