You can download it through Group, use dispath_group_enter() and dispath_group_leave() to put the thread into the group, use dispath_group_notify to monitor whether the task has been downloaded, do not use dispath_group_wait to monitor, because dispath_group_wait will block the thread.
I did it with all my hands, I hope I can give you a good review^_^ This method seems a bit troublesome, if any master has a better method, I hope to share it
You can download it through Group, use dispath_group_enter() and dispath_group_leave() to put the thread into the group, use dispath_group_notify to monitor whether the task has been downloaded, do not use dispath_group_wait to monitor, because dispath_group_wait will block the thread.
I wrote an example below:
I did it with all my hands, I hope I can give you a good review^_^
This method seems a bit troublesome, if any master has a better method, I hope to share it