Skip to content

Commit

Permalink
Editorial: Update use of WebIDL "invoke a callback function" (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyroman authored Aug 12, 2024
1 parent 4b53840 commit 714aeb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/scheduling-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ A <dfn>task handle</dfn> is a [=struct=] with the following [=struct/items=]:
steps:
1. Let |event loop| be the |scheduler|'s [=relevant agent=]'s [=agent/event loop=].
1. Set |event loop|'s [=event loop/current scheduling state=] to |state|.
1. Let |callbackResult| be the result of [=invoking=] |callback|. If that threw an exception,
then [=reject=] |result| with that, otherwise resolve |result| with |callbackResult|.
1. Let |callbackResult| be the result of [=invoking=] |callback| with « » and "`rethrow`".
If that threw an exception, then [=reject=] |result| with that. Otherwise, [=resolve=]
|result| with |callbackResult|.
1. Set |event loop|'s [=event loop/current scheduling state=] to null.
1. Let |delay| be |options|["{{SchedulerPostTaskOptions/delay}}"].
1. If |delay| is greater than 0, then [=run steps after a timeout=] given |scheduler|'s [=relevant
Expand Down

0 comments on commit 714aeb3

Please sign in to comment.