Firebase APIs are sensitive to the performance of your app’s main thread . This means that any Firebase API that needs to deal with data on disk or network is implemented in an asynchronous style. The functions will return immediately , so you can call them on the main thread without worrying about performance.