nim-chronos
nim-chronos copied to clipboard
AsyncEventQueue: add resetRegistration() to continue using the same r…
…egistration key after AsyncEventQueueFullError
With EventBus being deprecated I am checking how to move exiting code to AsyncEventQueue and was wondering if the addition of resetRegistration()
(tentative proc name) would be acceptable. It could be used when tasks catch AsyncEventQueueFullError
and handle/log the occurence but then continue receiving events using the same key instead of getting a new one.