TF-495 Show FPS when load more emails

This commit is contained in:
dab246
2022-04-19 16:24:21 +07:00
committed by Dat H. Pham
parent 3aa3c38e2d
commit ead1ccd345
5 changed files with 154 additions and 2 deletions
@@ -243,7 +243,9 @@ class ThreadRepositoryImpl extends ThreadRepository {
@override
Stream<EmailsResponse> loadMoreEmails(GetEmailRequest getEmailRequest) async* {
bench.start('loadMoreEmails in computed');
final response = await compute(_getAllEmailsWithoutLastEmailId, getEmailRequest);
bench.end('loadMoreEmails in computed');
await _updateEmailCache(newCreated: response.emailList);
yield response;
}