The url for the SyncWorker is in correct, the block is:
Note: As a real-world example of async(), you can check out this part of the Now in Android app. In the SyncWorker class, the call to sync() returns a boolean if the sync to a particular backend was successful. If any of the sync operations failed, then the app needs to perform a retry.
Hi On the page Asynchronous code
The url for the SyncWorker is in correct, the block is:
Note: As a real-world example of async(), you can check out this part of the Now in Android app. In the SyncWorker class, the call to sync() returns a boolean if the sync to a particular backend was successful. If any of the sync operations failed, then the app needs to perform a retry.
The url should be: SyncWorker
Thanks for the Codelab!