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
NickNameWolf wants to merge 1 commit intoAFNetworking:masterfrom
NickNameWolf:remove_unavailablecode
Open

remove scheduleInRunLoop in requestWithMultipartFormRequest:writingSt…#4626
NickNameWolf wants to merge 1 commit intoAFNetworking:masterfrom
NickNameWolf:remove_unavailablecode

Conversation

@NickNameWolf
Copy link
Copy Markdown

…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

…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