OneTime
@Serializable
Run once; survives process death and reboot unless ephemeral.
Constructors
Link copied to clipboard
constructor(taskId: String, constraints: WorkConstraints = WorkConstraints(), input: WorkInput = WorkInput.empty(), ephemeral: Boolean = false, initialDelay: Duration = Duration.ZERO, backoff: BackoffPolicy = BackoffPolicy.exponential(30.seconds), executionHint: ExecutionHint = ExecutionHint.Standard)
Properties
Link copied to clipboard
Retry policy applied when the worker returns WorkResult.Retry.
Link copied to clipboard
Link copied to clipboard
Hint to the scheduler about urgency; see ExecutionHint.Expedited for iOS/Android specifics.
Link copied to clipboard
Minimum delay before the platform dispatches this request. May be Duration.ZERO.