You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 forqueue
(default tonil
). The queue could then be passed toprocessRequest(completion:)
and then on to the various Alamofireresponse()
methods.Then the user could implement their own
AlamofireRequestBuilder
to override the queue.The text was updated successfully, but these errors were encountered: