shutdownCallback

Last updated 2 months ago

Shutdown Callback Module.

API Overview

  • Methods - API calls which can only be made on an object returned by a constructor

API Documentation

Methods

Signature

cp.config.shutdownCallback:callbackFn() -> function

Type

Method

Description

Returns the callbackFn of the current Shutdown Callback

Parameters

Returns

get

Signature

cp.config.shutdownCallback:get(id) -> table

Type

Method

Description

Creates a new Shutdown Callback.

Parameters

Returns

getAll

Signature

cp.config.shutdownCallback:getAll() -> table

Type

Method

Description

Returns all of the created Shutdown Callbacks

Parameters

Returns

id

Signature

cp.config.shutdownCallback:id() -> string

Type

Method

Description

Returns the ID of the current Shutdown Callback

Parameters

Returns

new

Signature

cp.config.shutdownCallback:new(id, callbackFn) -> table

Type

Method

Description

Creates a new Shutdown Callback.

Parameters

Returns