-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
In low-latency applications, it's often desirable to drop old items from the queue in favor of newer items. A suitable interface might be something like:
fn force_push(&self, v: T) -> option<T>
where the return value is None or, if the oldest element was dropped, Some(old_value).
Such a function would be non-blocking, of course.
jaredcnance
Metadata
Metadata
Assignees
Labels
No labels