talos

Форк
0
/
conditions.go 
21 строка · 541.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 (
8
	"context"
9
	"fmt"
10
)
11

12
// OK is returned by the String method of the passed Condition.
13
const OK = "OK"
14

15
// Condition is a object which Wait()s for some condition to become true.
16
//
17
// Condition can describe itself via String() method.
18
type Condition interface {
19
	fmt.Stringer
20
	Wait(ctx context.Context) error
21
}
22

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

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

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

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