SynchronousWorkContinuation

interface SynchronousWorkContinuation
androidx.work.SynchronousWorkContinuation

Blocking methods for WorkContinuation operations. These methods are expected to be called from a background thread.

Summary

Public methods
abstract Unit

Enqueues the instance of WorkContinuation in a synchronous fashion.

Public methods

enqueueSync

abstract fun enqueueSync(): Unit

Enqueues the instance of WorkContinuation in a synchronous fashion. This method is expected to be called from a background thread and, upon successful execution, you can rely on that the work has been enqueued.