You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2021. It is now read-only.
So we use this to make some commond functions. like def request_file_list(self, user_callback = None)
End User calls request_file_list
request_file_list calles ApiService.instance().send_command
user_callback is for end user. there are 3 cases.
Async-1: No specified user_callback parameter, then use default user_callback="" internal.
Async-2: Sepcify user_callback=some_fun, so the user can pass his own callback function to handle the result.
Sync (blocking): specify user_callback= None and pass it in send_command, so it will block user's (caller) thread and wait for the result as the return value.