A queue with cancelable block operations that supports LIFO and FIFO