chore(promises): make a Status function part of the Promise interface

This commit is contained in:
Julien Dessaux 2024-03-23 14:50:37 +01:00
parent 4d3e266b07
commit eb9d5f861a
Signed by: adyxax
GPG key ID: F92E51B86E07177E
7 changed files with 27 additions and 15 deletions

View file

@ -63,6 +63,10 @@ func (p *PackagePromise) Resolve() {
}
}
func (p PackagePromise) Status() Status {
return p.status
}
// ----- Internal --------------------------------------------------------------
func resolvePackages() (status Status) {
status = KEPT