chore(gonf): change Promise() methods return type to be more specific

This commit is contained in:
Julien Dessaux 2024-08-28 00:14:30 +02:00
parent e7572a1382
commit 14511b3201
Signed by: adyxax
GPG key ID: F92E51B86E07177E
8 changed files with 7 additions and 28 deletions

View file

@ -2,31 +2,10 @@ package gonf
type Promise interface {
IfRepaired(...Promise) Promise
Promise() Promise
Resolve()
Status() Status
}
//type Operation int
//
//const (
// AND = iota
// OR
// NOT
//)
//
//func (o Operation) String() string {
// switch o {
// case AND:
// return "and"
// case OR:
// return "or"
// case NOT:
// return "not"
// }
// panic("unknown")
//}
type Status int
const (