Closed simophin closed 3 months ago
This PR reworks some aspect of the attachment download:
AttachmentDownloadHelper
AttachmentDownloadJob
There's one more fix on the ThreadUtils where the ExecutorService seems to misbehave. Changed over to use the Kotlin Coroutine's IO dispatcher.
ThreadUtils
ExecutorService
@bemusementpark Wanna have a look again? I've extracted the said Flow operator to Flow.timedBuffer.
Flow.timedBuffer
Description
This PR reworks some aspect of the attachment download:
AttachmentDownloadHelper
is created to batch the download request.AttachmentDownloadJob
There's one more fix on the
ThreadUtils
where theExecutorService
seems to misbehave. Changed over to use the Kotlin Coroutine's IO dispatcher.