blob: d6d7847b886040368bc3b2a00c27c4a91a43b43f (
plain)
1
2
3
4
5
6
7
8
9
10
|
package core
import "context"
// ValueState is for client side using to update state
type ValueState[T any] interface {
Value(ctx context.Context) (T, error)
Update(ctx context.Context, newVal T) (T, error)
Clear(ctx context.Context) error
}
|