tock / ai.tock.bot.connector / ConnectorQueue

ConnectorQueue

class ConnectorQueue (source)

A Queue to ensure the calls from the same user id are sent sequentially.

Constructors

<init>

A Queue to ensure the calls from the same user id are sent sequentially.

ConnectorQueue(executor: Executor)

Functions

add

Adds an action to send to a queue by recipient.

fun add(action: Action, delayInMs: Long, send: (action: Action) -> Unit): Unit