I have a question regarding the API v2 examples as a whole. All of the examples supplies use async calls. even for login. However you use task.wait() after the Task creation which essentially makes the call synchronous as the program waits for the task to complete.
You use async threads if those threads do operations that are independent of the main path or other threads(not including sharing information from those threads). What is the idea behind using it to perform login and task.wait()?