8000 remove scheduleInRunLoop in requestWithMultipartFormRequest:writingSt… by NickNameWolf · Pull Request #4626 · AFNetworking/AFNetworking · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

remove scheduleInRunLoop in requestWithMultipartFormRequest:writingSt… #4626

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NickNameWolf
Copy link

…reamContentsToFile:completionHandler of AFURLRequestSerialization

[inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; [outputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
the code is unnecessay. here is the reasons:

  1. runloop does not run in other thread .
  2. read and write from stream using Polling model, runloop is needless

8132
…reamContentsToFile:completionHandler of AFURLRequestSerialization
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0