Skip to content

Feature request: Suppress duplicate work while an operation is active #12

Description

@dombrovsky

Feature request

Allow a caller to prevent equivalent work from being queued while an operation is already active.

Rationale

Some user actions and service commands should run at most once at a time. Queueing duplicates performs stale work later, while cancel-previous and shared-result behavior solve different problems.

Use case

A user invokes a sign-in or refresh command repeatedly while the first invocation is still running. The original operation should continue, and later duplicate invocations should not execute.

Desired behavior

  • The active operation continues unchanged.
  • Equivalent submissions made while it is active do not execute later.
  • The submitting caller receives a clear, observable indication that its operation was not accepted.
  • Once the active operation completes, a new submission can run normally.
  • Cancellation and disposal retain their normal TaskFlow behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions