talos
22 строки · 489.0 Байт
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5package conditions
6
7import "context"
8
9type condition struct{}
10
11func (condition) Wait(ctx context.Context) error {
12return nil
13}
14
15func (condition) String() string {
16return "nothing"
17}
18
19// None is a service condition that has no conditions.
20func None() Condition {
21return condition{}
22}
23