BLPOP blocking code refactored to be generic & reusable.