Added ClearActionQueue

graph-rework-2
noah metz 2023-07-24 19:00:44 -06:00
parent 24285ba5da
commit 8e191543d6
1 changed files with 6 additions and 0 deletions

@ -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
}