Push put the executable task into the queue
(job Jober)
| 32 | |
| 33 | // Push put the executable task into the queue |
| 34 | func Push(job Jober) { |
| 35 | if internalQueue == nil { |
| 36 | return |
| 37 | } |
| 38 | internalQueue.Push(job) |
| 39 | } |
| 40 | |
| 41 | // Terminate terminate the queue to receive the task and release the resource |
| 42 | func Terminate() { |