From a5c7ff1b10d16dfca2f1ecc2aa696b9f8440e6a0 Mon Sep 17 00:00:00 2001 From: pancsta <155631569+pancsta@users.noreply.github.com> Date: Wed, 10 Jul 2024 18:50:28 +0200 Subject: [PATCH] refac(machine): make WhenDisposed a method --- pkg/machine/machine.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/machine/machine.go b/pkg/machine/machine.go index 9762dba..b6b1d16 100644 --- a/pkg/machine/machine.go +++ b/pkg/machine/machine.go @@ -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