edvin
08/02/2018, 7:47 PMcarlw
08/02/2018, 7:48 PMedvin
08/02/2018, 7:48 PMcarlw
08/02/2018, 7:53 PMedvin
08/02/2018, 7:53 PMcarlw
08/02/2018, 7:55 PMcarlw
08/02/2018, 7:56 PMedvin
08/02/2018, 7:56 PMedvin
08/02/2018, 7:57 PMcarlw
08/02/2018, 7:57 PMcarlw
08/02/2018, 7:58 PMcarlw
08/02/2018, 7:59 PMedvin
08/02/2018, 8:00 PMedvin
08/02/2018, 8:00 PMedvin
08/02/2018, 8:01 PMcarlw
08/02/2018, 8:02 PMcarlw
08/02/2018, 8:03 PMedvin
08/02/2018, 8:04 PMcarlw
08/02/2018, 8:06 PMcarlw
08/02/2018, 8:07 PMedvin
08/02/2018, 8:09 PMcarlw
08/02/2018, 8:12 PMcarlw
08/02/2018, 8:12 PMcarlw
08/02/2018, 8:13 PMcarlw
08/02/2018, 8:13 PMRoman
08/03/2018, 6:01 AMrunAsync {
while (true) {
TimeUnit.SECONDS.sleep(2)
homeController.updateDeviceStatus(printers, notificationEnabled)
homeController.updatePrintingServiceStatus(printers)
homeController.runPrinterService(printers)
}
}
but when i closed app it task still workedvin
08/03/2018, 6:32 AMrunAsync(daemon = true) { .. }
and also make sure that your calls to homeController
are either wrapped in runLater
so they run on the UI thread, or make sure the functions themselves make sure they run on the correct threadRoman
08/03/2018, 6:43 AMedvin
08/03/2018, 6:43 AMedvin
08/03/2018, 6:44 AM