This is the ThingsDB documentation for version v0, click here for the latest version!

unwatch

Stop watching for mutations on a thing. This function returns nil and triggers a stop event, only when the thing was being watched.

This function does not generate an event.

Function

thing.unwatch()

Arguments

None

Return value

Returns nil.

Example

This code shows how to use unwatch():

.unwatch();

Return value in JSON format:

null