Concepts

The content in this guide refers to the newly released version 3 of the library. You can still access the version 1.x guides here.

Version 1.x is now deprecated. We will continue to support 1.x through March 31, 2017 (End of Support - EOS). If you are currently using 1.x in your apps, you will need to upgrade your apps to 3.x before the EOS date. We have created a migration guide to help you.

This guide explains the concepts of the Kinvey SDK. It primarily discusses how asynchronous flows are managed using Async and Await.

Asynchronous Programming with async and await

The Kinvey SDK makes extensive use of the asynchronous programming paradigm using the async/await keywords in C#, which are part of the Task-based Asynchronous Pattern (TAP). The goal of using TAP is to improve app responsiveness, as well as to make writing code against the API cleaner and easier. Public API methods that are asynchronous have names that end with Async (e.g. FindAsync()).

Using the asynchronous API means that no additional threads are created. Please be aware that this work could potentially be executing on the mobile application's UI thread.

Learn more

If you are interested in learning more about async/await, we recommend reading the following articles:

  • Async and Await. Introduction to the async/await asynchronous programming pattern in C#.
  • Best Practices. Post on best practices using async/await.
Got a question?