discovery: change Advertise() to return done channel

  Advertising is stopped when the given context done, but there is no way
  to know when it is actually stopped. This makes difficult to update
  the existing advertisement since it should be stopped before
  advertising a new one.

  This CL change Advertise() to return done channel which will be closed
  when it is stopped.

MultiPart: 2/3
Change-Id: If88bab34969c5776162f3c89bdc2daa6770af8e6
9 files changed
tree: 00b4a7a3d9a8fd00b5dd8d92badd7e798e29fc4c
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.