benkuly
09/13/2021, 8:36 AMJoffrey
09/13/2021, 8:46 AMMap<Message, Deferred<DecryptedMessage>>
could help? You would start decryption coroutines with async {}
and store the returned Deferred
so that other clients would immediately get the same Deferred
without starting new coroutines. You then have to decide when you want to evict from this map. Probably as soon as the coroutine is over, but you could also use it as cachebenkuly
09/13/2021, 9:01 AMJoffrey
09/13/2021, 12:20 PMJoffrey
09/13/2021, 12:20 PMbenkuly
09/14/2021, 7:37 AM