Checks if the queue is closed
()
| 391 | |
| 392 | // Checks if the queue is closed |
| 393 | func (f *DeltaFIFO) IsClosed() bool { |
| 394 | f.closedLock.Lock() |
| 395 | defer f.closedLock.Unlock() |
| 396 | return f.closed |
| 397 | } |
| 398 | |
| 399 | // Pop blocks until an item is added to the queue, and then returns it. If |
| 400 | // multiple items are ready, they are returned in the order in which they were |