chore(gonf): change Promise() methods return type to be more specific
This commit is contained in:
parent
e7572a1382
commit
14511b3201
8 changed files with 7 additions and 28 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue