mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 02:20:37 +00:00
As the whole point of future/promise is to decouple the producer from the consumer, available() is not generally useful. However it can still be useful in special cases when we want to know who got there first. One of them is deciding when to drop packets -- if the consumer is not ready, and no queue space is available, we should just drop the packet instead of waiting for the consumer.