IosBackgroundExecution

internal class IosBackgroundExecution(val name: String, val activeJob: () -> Job?)(source)

Wraps iOS finite background execution time for a generation job.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(name: String, activeJob: () -> Job?)

Properties

Link copied to clipboard
private val activeJob: () -> Job?
Link copied to clipboard
private var identifier: UIBackgroundTaskIdentifier
Link copied to clipboard
private val name: String

Functions

Link copied to clipboard
fun begin()

Executes the begin step in the SDAI background work feature layer.

Link copied to clipboard
fun end()

Executes the end step in the SDAI background work feature layer.

Link copied to clipboard
private inline fun runOnMainThread(crossinline block: () -> Unit)