Schedule
Schedule copied to clipboard
Suspension problem
I have a task:
let task = Plan.every(5.seconds).do(action: startSome)
When I suspend() it somewhere and then resume for 10 seconds, I have 2 immediate calls of startSome. But what I want is call startSome in (5sec - time remaining when I called suspend). Is it possible?