setVt

suspend fun setVt(queue: String, id: Long, vt: Duration): Result<Long>(source)

Updates the visibility timeout (VT) for a specific item in the given queue.

Return

A Result wrapping the updated identifier of the item or an error if the operation fails.

Parameters

queue

The name of the queue containing the item.

id

The identifier of the item whose visibility timeout should be updated.

vt

The new visibility timeout value as the Duration.