muliyul
08/16/2024, 6:25 PMmuliyul
08/16/2024, 6:33 PMvar future: ScheduledFuture<*> by Delegates.notNull()
future = heartbeatExecutor.scheduleAtFixedRate({
but wondering if there are more elegant solutions...Paul Griffith
08/16/2024, 11:50 PMDaniel Pitts
08/17/2024, 3:55 AMfuture
to not actually be assigned yet.
@Paul Griffith’s suggestion would work, according to the JavaDoc for scheduleAtFixedRate.
If any execution of the task encounters an exception, subsequent executions are suppressed
muliyul
08/18/2024, 6:53 AMCancellationException
in javadoc.Daniel Pitts
08/18/2024, 2:54 PM