Module lib.container.watchtable

WatchTable - a table which can be watched of key changes

Functions

new (t, cb) Create a table which invokes a callback each time a value is set.


Functions

new (t, cb)
Create a table which invokes a callback each time a value is set.

The callback function is passed the key, value after a given set operation has been performed.

Parameters:

  • t table Initial table contents (can be nil).
  • cb function Callback on key set

Returns:

    table
generated by LDoc 1.5.0 Last updated 2024-10-13 17:45:04