Exist returns true if there is an instance with given identity exists in the queue.
(id any)
| 35 | // Exist returns true if there is an instance with given identity |
| 36 | // exists in the queue. |
| 37 | func (q *UniqueQueue) Exist(id any) bool { |
| 38 | return q.table.IsRunning(com.ToStr(id)) |
| 39 | } |
| 40 | |
| 41 | // AddFunc adds new instance to the queue with a custom runnable function, |
| 42 | // the queue is blocked until the function exits. |
no test coverage detected