diff options
author | Julien Dessaux | 2024-03-23 14:50:37 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-03-24 09:58:15 +0100 |
commit | eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb (patch) | |
tree | b7d8bfca9d583fb6a555a73cda36d0c940dd692e /pkg/services.go | |
parent | feat(custom): implemented custom promises (diff) | |
download | gonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.tar.gz gonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.tar.bz2 gonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.zip |
chore(promises): make a Status function part of the Promise interface
Diffstat (limited to '')
-rw-r--r-- | pkg/services.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/services.go b/pkg/services.go index 58c7383..658cd0e 100644 --- a/pkg/services.go +++ b/pkg/services.go @@ -78,6 +78,10 @@ func (s *ServicePromise) Resolve() { } } +func (s ServicePromise) Status() Status { + return s.status +} + // ----- Internal -------------------------------------------------------------- func resolveServices() (status Status) { status = KEPT |