klippa-app/nativescript-http

[FR] run big opps in threads

farfromrefug opened this issue · 1 comments

When getting the repsonse either in json or writting to a file, it can often be very long and thus will blockntr main thread.
Would you consider running those in a thread?
I implemented that in https plugin here https://github.com/EddyVerbruggen/nativescript-https/blob/master/src/platforms/android/java/com/nativescript/https/OkHttpResponse.java

I'm open to it 👍

However, there always has to happen a transition between Java String to JavaScript string, so question is whether that is faster than doing the toString from JavaScript.