StartEndTask

constructor(@NonNull onStart: Runnable, @NonNull onFinish: Runnable)

Create a new StartEndTask.

Parameters

onStart

the callback to run when the task starts

onFinish

the callback to run when the task finishes