Flush all watchers on empty queue

This commit is contained in:
Fedor Indutny
2021-03-25 17:00:03 -07:00
committed by GitHub
parent 67892d838c
commit 746e99b8c2
8 changed files with 317 additions and 89 deletions

View File

@@ -742,6 +742,7 @@ async function getConversationById(
}
const updateConversationBatcher = createBatcher<ConversationType>({
name: 'sql.Client.updateConversationBatcher',
wait: 500,
maxSize: 20,
processBatch: async (items: Array<ConversationType>) => {