Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
57 lines (47 loc) · 4.09 KB

cp.config.shutdownCallback.md

File metadata and controls

57 lines (47 loc) · 4.09 KB

docs » cp.config.shutdownCallback


Shutdown Callback Module.

API Overview

API Documentation

Methods

Signature cp.config.shutdownCallback:callbackFn() -> function
Type Method
Description Returns the callbackFn of the current Shutdown Callback
Parameters
  • None
Returns
  • The callbackFn of the current Shutdown Callback
Signature cp.config.shutdownCallback:get(id) -> table
Type Method
Description Creates a new Shutdown Callback.
Parameters
  • id - The unique ID for the callback you want to return.
Returns
  • table containing the callback
Signature cp.config.shutdownCallback:getAll() -> table
Type Method
Description Returns all of the created Shutdown Callbacks
Parameters
  • None
Returns
  • table containing all of the created callbacks
Signature cp.config.shutdownCallback:id() -> string
Type Method
Description Returns the ID of the current Shutdown Callback
Parameters
  • None
Returns
  • The ID of the current Shutdown Callback as a string
Signature cp.config.shutdownCallback:new(id, callbackFn) -> table
Type Method
Description Creates a new Shutdown Callback.
Parameters
  • id - The unique ID for this callback.
Returns
  • table that has been created