Add event support to execution subsystem
The implementation relies on nats.io Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
@@ -7,6 +7,6 @@ type waiter interface {
|
||||
Wait() (uint32, error)
|
||||
}
|
||||
|
||||
func (s *Supervisor) Add(w waiter) {
|
||||
|
||||
func (s *Supervisor) Monitor(w waiter, cb func(uint32, error)) {
|
||||
go cb(w.Wait())
|
||||
}
|
||||
|
Reference in New Issue
Block a user