Added ClearActionQueue
parent
24285ba5da
commit
8e191543d6
|
|
@ -194,6 +194,12 @@ func (thread *Thread) QueueAction(end time.Time, action string) {
|
|||
thread.NextAction, thread.TimeoutChan = thread.SoonestAction()
|
||||
}
|
||||
|
||||
func (thread *Thread) ClearActionQueue() {
|
||||
thread.ActionQueue = []QueuedAction{}
|
||||
thread.NextAction = nil
|
||||
thread.TimeoutChan = nil
|
||||
}
|
||||
|
||||
func (thread *Thread) ThreadHandle() *Thread {
|
||||
return thread
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue