Type deai.plugin.lua:Proxy
Lua proxy of a deai object
When you create a deai object, a proxy object is created in lua. Some extra methods are available from these proxies.
Methods
Listen for signals |
|
Listen for signals only once |
- on(signal, callback) ListenHandle
- Return type:
- Parameters:
signal (string)
Listen for signals
Returns a handle. The handle can be used to stop the signal listener, by calling the “stop” method.
If the handle is garbage collected, the listener will be left running forever.