New sync algorithm: Remove closure and add captured variable to state
New sync algorithm: Remove closure and add captured variable to state

wonderpush/wonderpush-android-sdk,wonderpush/wonderpush-android-sdk,wonderpush/wonderpush-android-sdk,wonderpush/wonderpush-android-sdk