complete

suspend fun complete(id: Int): EphemeralTask

Transition the task from TaskStatus.InProgress to TaskStatus.Completed.

Throws

if no such task exists.

if the task is not currently in progress.