-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the question preamble can return a promise, which will be awaited
Prompted by someone wanting to get data from an API to use in variable generation. If the question's JS preamble returns a Promise, then the `preambleRun` signal isn't fired until that promise resolves. The constants, functions and rulesets jobs now don't happen until the promise resolves, so you can do things like set variables in the question scope before the variable generation happens.
- Loading branch information
1 parent
c387528
commit ee9c7b6
Showing
3 changed files
with
92 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters