Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

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 process is subject to some limitations. Module transformation can only locate calls to a function when it is able to determine the function name.

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

Examples:

Set in config.js
"autoAsyncAwait": true

Click here for information on how to modify this setting.

Override in Program
// PROFOUNDJS_autoAsyncAwait=false
  • No labels