close
This commit is contained in:
parent
55f8a0d30f
commit
430e993a68
1
queue.go
1
queue.go
|
@ -89,6 +89,7 @@ func (lq *LoafleQueue) Close() {
|
||||||
if lq.eventChanel != nil {
|
if lq.eventChanel != nil {
|
||||||
observer.Remove(lq.queueType, lq.eventChanel)
|
observer.Remove(lq.queueType, lq.eventChanel)
|
||||||
}
|
}
|
||||||
|
lq.items = nil
|
||||||
}
|
}
|
||||||
func NewQueue(eventType string, interval time.Duration, senderChanel chan interface{}) *LoafleQueue {
|
func NewQueue(eventType string, interval time.Duration, senderChanel chan interface{}) *LoafleQueue {
|
||||||
items := make([]*Item, 0)
|
items := make([]*Item, 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user