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 4 Current »

Content Freeze

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

Globally registers an async function name to trigger automatic addition of the await keyword when the function is used. This API can be used during server startup to load and register globally shared function names.

Parameters

  1. (String) Function name

Example

if (!global.mycompany) global.mycompany = {};
if (!mycompany.utils) mycompany.utils = {};
mycompany.utils.usefulFunction = pjs.require("utils/usefulFunction.js");
pjs.registerAsyncName("mycompany.utils.usefulFunction");
  • No labels