diff --git a/thread.go b/thread.go index 8fdc455..9f07338 100644 --- a/thread.go +++ b/thread.go @@ -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 }