invoke

suspend fun invoke(channel: ReceiveChannel<Task>)

Invokes the worker service to process tasks from the given channel.

Parameters

channel

The receive channel from which tasks are consumed.

Throws

If an unexpected error occurs during task processing.