Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Info

This option was added in Profound.js 6.0.0

This option controls whether or not Profound.js's module transformation process attempts to add async/await on calls to all functions that are defined with async.

See section What is Module Transformation? in Coding With Promises in Profound.js for more information.

Valid values are:

  • true - Module transformation attempts to add async/await on calls to all functions in the module that are defined with async.

  • false - Module transformation does not attempt to add async/await on calls to all async functions. Module transformation will still add async/await on calls to functions that contain calls to asynchronous Profound.js framework APIs.

If this option is not specified, the default value is true. 

...

This option can also be overridden for an individual Profound.js program by including a comment anywhere in the code containing the text text PROFOUNDJS_autoAsyncAwait=VALUE, where VALUE is  is one of those above. The text is case-sensitive.

Examples:

Set in config.js
Code Block
languagejstitleSet in config.js
"autoAsyncAwait": true

Click here for information on how to modify this setting.

Override in Program
Code Block
languagejstitleOverride in Program
// PROFOUNDJS_autoAsyncAwait=false

...