diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html index dd13b6732..831021917 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html +++ b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html @@ -21,9 +21,10 @@ the body of the message.

The function is expected to return a message object (or multiple message objects), but can choose to return nothing in order to halt a flow.

-

The Setup tab contains code that will be run whenever the node is started. - The Close tab contains code that will be run when the node is stopped.

-

If an promise object is returned from the setup code, input message processing starts after its completion.

+

The On Start tab contains code that will be run whenever the node is started. + The On Stop tab contains code that will be run when the node is stopped.

+

If the On Start code returns a Promise object, the node will not start handling messages + until the promise is resolved.

Details

See the online documentation for more information on writing functions.