Skip to content

Commit

Permalink
refac(machine): make WhenDisposed a method
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta committed Jul 10, 2024
1 parent 319f1e3 commit a5c7ff1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,10 @@ func (m *Machine) WhenQueueEnds(ctx context.Context) <-chan struct{} {
return ch
}

func (m *Machine) WhenDisposed() <-chan struct{} {
return m.whenDisposed
}

// Time returns a list of logical clocks of specified states (or all the states
// if nil).
// states: optionally passing a list of states param guarantees a deterministic
Expand Down

0 comments on commit a5c7ff1

Please sign in to comment.