wendy / com.levibostian.wendy.types / ReasonPendingTaskSkipped

ReasonPendingTaskSkipped

enum class ReasonPendingTaskSkipped

Reasons why a PendingTask was skipped by the task runner.

Types

Visitor

interface Visitor<out E>

If you have ever used the Visitor Pattern before in Java/Kotlin, this is for you.

Enum Values

NOT_READY_TO_RUN

The PendingTask of the app said that it was not ready to run.

PART_OF_FAILED_GROUP

If a PendingTask runs that has a non-null PendingTask.groupId and it fails running, then all of the other PendingTasks that belongs to the group that have yet to run will all be skipped and rescheduled to run again.

UNRESOLVED_RECORDED_ERROR

If there exists a recorded error for PendingTask. The PendingTask will execute again when Wendy.resolveError is called on the PendingTask.

Functions

accept

abstract fun <E> accept(visitor: Visitor<E>): E

If you have ever used the Visitor Pattern before in Java/Kotlin, this is for you.