public class ConnectorQueue
A Queue to ensure the calls from the same user id are sent sequentially.
public ConnectorQueue(@NotNull
ai.tock.shared.Executor executor)
A Queue to ensure the calls from the same user id are sent sequentially.
public void add(@NotNull
Action action,
long delayInMs,
@NotNull
kotlin.jvm.functions.Function1<? super ai.tock.bot.engine.action.Action,kotlin.Unit> send)
Adds an action to send to a queue by recipient.
This method is thread safe.
action - the action to senddelayInMs - the optional delaysend - the send function