bingobot/internal
Ava Affine 609c50ff7d Extend DocumentBuffer with apply interface
The existing DocumentBuffer interface provided no facility
to iterate over events in order without caching them all in memory
and pushing/popping them. This was deemed significantly unoptimal and
so Apply() was born.

When Apply() is called, DocumentBuffer will recieve a filter callable
(functor, lambda, or closure) and will call it on all documents in order
throughout the entire cache and store, without caching stored events
or modifying the cache either.

The filter Apply() uses will recieve one document and return true or
false: true to continue iterating and false to stop iterating.

Signed-off-by: Ava Affine <ava@sunnypup.io>
2024-12-05 16:40:34 -08:00
..
config Implement UserActive events 2024-11-14 10:42:02 -08:00
discord inline _activityTimerExists() into stopActivityTimer() 2024-11-14 10:58:15 -08:00
docbuf Extend DocumentBuffer with apply interface 2024-12-05 16:40:34 -08:00
logging Remove source info from log messages 2024-11-13 17:02:47 -08:00
state Implement UserActive events 2024-11-14 10:42:02 -08:00