MinimumStatePolicy

Describes the way a particular Job will behave if the lifecycle passes below the minimum state before said Job has completed.

Entries

Link copied to clipboard

When using RESTART_EVERY, a coroutine will be created every time the lifecycle meets the minimum state, and will be cancelled upon dropping below it. Subsequently meeting the minimum state again will create a new coroutine.

Link copied to clipboard

When using CANCEL, a coroutine will be created the first time the lifecycle meets the minimum state, and cancelled upon dropping below it. Subsequently meeting the minimum state again will not resume the coroutine or create a new one.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int

Sources

Link copied to clipboard