go-datastructures icon indicating copy to clipboard operation
go-datastructures copied to clipboard

Queue Get func

Open Maxi135798642 opened this issue 2 years ago • 1 comments

When the queue is empty and you use Get I get a strange error instead of ErrEmptyQueue error and please add any error when using Get will output a shorter slice.

Maxi135798642 avatar Apr 30 '23 21:04 Maxi135798642

@Maxi135798642 , the logic in the code doesn't seem to return any error when you try to do a Get on an empty unless you are setting a timeout. Can you share the error you are getting?

Venkatasai-102 avatar Feb 15 '25 12:02 Venkatasai-102