EnqueueBack adds the work to the back of the queue.
(ctx context.Context, callback CallbackFunc)
| 36 | |
| 37 | // EnqueueBack adds the work to the back of the queue. |
| 38 | func (v *Queue) EnqueueBack(ctx context.Context, callback CallbackFunc) { |
| 39 | v.enqueue(ctx, false, callback) |
| 40 | } |
| 41 | |
| 42 | func (v *Queue) enqueue(ctx context.Context, front bool, callback CallbackFunc) { |
| 43 | v.monitor.L.Lock() |