We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@onDaemonStart and @onDaemonStop allow you to run code when serverino is started and stopped.
@onDaemonStart
@onDaemonStop
@onDaemonStart void mywork() { // You should create a new thread otherwise you're blocking serverino :) new Thread({ // isDaemon = true to kill this thread when serverino exits. Thread.getThis().isDaemon = true; while(true) { info("Running!"); Thread.sleep(1.seconds); } }).start(); }