amazon-archives / aws-sdk-react-native

AWS SDK for React Native (developer preview)
Apache License 2.0
631 stars 68 forks source link

Moving lambda invoke to background thread #8

Closed markbiddlecom closed 7 years ago

markbiddlecom commented 7 years ago

Noticed that the UI thread was blocking while making lambda calls in my app. This seems to fix it. Unit tests still pass, assuming I'm running them correctly :stuck_out_tongue:

If you dig this pattern I might do something similar for the cognito calls since those seem to be blocking as well.

Note: this has not yet been tested exhaustively.

markbiddlecom commented 7 years ago

Actually I'm going to take a pass at making this more generic so the whole SDK can take advantage. Will resubmit soon.