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
  • #230
Closed
Open
Issue created Jun 05, 2018 by Administrator@rootContributor

[Swift 4] Add ability to pass in a dedicated queue for processing network response

Created by: joeboyscout04

Description

The Swift generator uses Alamofire under the hood, which provides this ability to pass in a dedicated background queue for processing responses. The default is the Main thread. This can cause performance problems when the body of the request is large.

openapi-generator version

3.0.0

Suggest a fix/enhancement

It would be simple to alter the Swift generator's AlamofireImplementations execute(completion: error:) method to include an optional argument for queue (default to nil). The queue could then be passed to processRequest(completion:) and then on to the various Alamofire response() methods.

Then the user could implement their own AlamofireRequestBuilder to override the queue.

Assignee
Assign to
Time tracking