package lifecycle import ( "context" "log/slog" ) // WaitDone exposes waitDone to the external test package. Only the // unexported waiter can be handed a channel that is already closed // before the call, which is the state the preamble exists for; // through WaitForShutdown the waiter goroutine may or may not have // closed the channel yet, so the case is not reachable // deterministically from outside. func WaitDone( ctx context.Context, log *slog.Logger, component string, done <-chan struct{}, ) error { return waitDone(ctx, log, component, done) }