What would be the kotlin way of planning a task at...
# coroutines
g
What would be the kotlin way of planning a task at X minutes from now? Is there some premade class for this?
j
Copy code
scope.launch {
    delay(x.minutes)
    doSomething()
}
Of course this doesn't account for platform restrictions on background work if your app isn't in the foreground and could be killed. That has to be handled in a platform-specific way.