Skip to content

AsyncConcurrencyStrategy

AsyncConcurrencyStrategy = "allow" | "prevent" | "cancel" | "queue" | "debounce"

Defined in: types.ts:17

What action/async does when its operation id is already running:

  • allow: start another call alongside it.
  • prevent: ignore the new call.
  • cancel: abort the running call and start the new one.
  • queue: start the new call after the running ones finish, in order.
  • debounce: start only after the calls stop for delay ms, then abort the previous call if it’s still running.