Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #14325
Closed
Open
Issue created Dec 26, 2022 by Administrator@rootContributor

[REQ] Add CancellationToken to list of arguments in Controller methods

Created by: philkild

Is your feature request related to a problem? Please describe.

I have a number of long-running server-side operations and handling cancellation from clients would be extremely useful. The ModelBinder will automatically bind RequestAborted to the cancellation token, therefore adding it as an argument is all that is required.

Describe the solution you'd like

Add a CancellationToken argument to all async calls.

Describe alternatives you've considered

I've tried to minimise long running calls and add caching but this would be a massive help.

Additional context

I found the following Blog post helpful.

Assignee
Assign to
Time tracking