openhab / openhab-js

openHAB JavaScript Library for JavaScript Scripting Automation
https://www.openhab.org/addons/automation/jsscripting/
Eclipse Public License 2.0
38 stars 31 forks source link

[actions] ScriptExecution: Support passing params to createTimer in `setTimeout`-style #311

Closed florian-h05 closed 6 months ago

florian-h05 commented 6 months ago

This adds support to createTimer for passing parameters to the callback function in setTimeout-style.

This is a more user-friendly way than using function generators to avoid variable mutation.