Function addResourceChangeListener
Parameters
- mod: NodeModule
The module whose invalidation will deactivate the callback. You should use
module
for this parameter - resourcePath: string
The absolute disk path to the resource to watch, or a resource path starting with "mod::"
- callback: () => void
The callback that will be invoked once when the resource is modified
Returns void
- mod: NodeModule
Register a callback that is invoked when the specified resource is modified. The callback is invoked only once and discarded if the module itself is invalidated.