nim-chronos icon indicating copy to clipboard operation
nim-chronos copied to clipboard

AsyncEventQueue: add resetRegistration() to continue using the same r…

Open dbrignoli opened this issue 1 year ago • 3 comments

…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.

dbrignoli avatar Oct 11 '22 14:10 dbrignoli