talos

Форк
0
/
none.go 
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

5
package conditions
6

7
import "context"
8

9
type condition struct{}
10

11
func (condition) Wait(ctx context.Context) error {
12
	return nil
13
}
14

15
func (condition) String() string {
16
	return "nothing"
17
}
18

19
// None is a service condition that has no conditions.
20
func None() Condition {
21
	return condition{}
22
}
23

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.