wendy / com.levibostian.wendy.extension

Package com.levibostian.wendy.extension

Functions

addTaskStatusListenerForTask

fun PendingTask.addTaskStatusListenerForTask(listener: PendingTaskStatusListener): Unit

Extension to WendyConfig.addTaskStatusListenerForTask easily from a PendingTask instance.

doesErrorExist

fun PendingTask.doesErrorExist(): Boolean

Extension to Wendy.doesErrorExist easily from a PendingTask instance.

getLatestError

fun PendingTask.getLatestError(): PendingTaskError?

Extension to Wendy.getLatestError easily from a PendingTask instance.

hasBeenAddedToWendy

fun PendingTask.hasBeenAddedToWendy(): Boolean

Checks to see if the PendingTask has been added to Wendy yet.

isAbleToManuallyRun

fun PendingTask.isAbleToManuallyRun(): Boolean

Extension to Wendy.isTaskAbleToManuallyRun easily from a PendingTask instance.

recordError

fun PendingTask.recordError(humanReadableErrorMessage: String?, errorId: String?): PendingTaskResult

Extension to Wendy.recordError easily from a PendingTask instance.

resolveError

fun PendingTaskError.resolveError(): Boolean

Extension to Wendy.resolveError easily from a PendingTaskError instance.

fun PendingTask.resolveError(): Unit

Extension to Wendy.resolveError easily from a PendingTask instance.