package host import "context" func joinAgentStartup(ctx context.Context, done <-chan struct{}) bool { if done == nil { return true } select { case <-done: return true case <-ctx.Done(): return false } }