Matej Kormuth
03/02/2019, 3:14 PMwhile(true) { ... delay(3000) }
code in it. Is is possible to somehow trigger skip of the delay (waiting 3s) and run the while loop body immediately?Dominaezzz
03/02/2019, 3:41 PMDominaezzz
03/02/2019, 3:42 PMdelay
function.Dominaezzz
03/02/2019, 3:43 PMselect
might help you.elizarov
03/02/2019, 3:53 PMdelay(3000)
, do:
select {
channel.onReceive { /* skipped */ }
onTimeout(3000) { /* waited */ }
}