Tasks.listen.subscribe(
Unit,
user,
handler = { /* will receive messages listed below */ }
)
/*
TaskUpdate(
complete = false,
jobId = "b06f51d2-88af-487c-bb4c-4cc156cf24fd",
messageToAppend = "Count is now 1",
newStatus = null,
newTitle = null,
progress = null,
speeds = emptyList(),
)
*/
/*
TaskUpdate(
complete = false,
jobId = "b06f51d2-88af-487c-bb4c-4cc156cf24fd",
messageToAppend = "Count is now 2",
newStatus = null,
newTitle = null,
progress = null,
speeds = emptyList(),
)
*/
/*
TaskUpdate(
complete = false,
jobId = "b06f51d2-88af-487c-bb4c-4cc156cf24fd",
messageToAppend = "Count is now 3",
newStatus = null,
newTitle = null,
progress = null,
speeds = emptyList(),
)
*/
/*
TaskUpdate(
complete = true,
jobId = "b06f51d2-88af-487c-bb4c-4cc156cf24fd",
messageToAppend = null,
newStatus = null,
newTitle = null,
progress = null,
speeds = emptyList(),
)
*/