core / pragma.jobs /

Package pragma.jobs #

Types #

NameSummary

BackgroundManager

interface BackgroundManager

Class for managing background concurrent tasks.

RunForeverJob

class RunForeverJob(owningService: Service, name: String, functorDelay: suspend () -> Long, functor: suspend () -> Unit)

Wraps a Service.runForever job so it can be safely (re)started from an onConfigChanged-style callback that may run more than once – or concurrently, on services whose config callbacks aren’t guaranteed to be single-threaded