[Feature Request] provide a way for users to cancel or close an existing Listener in Election api
Open
enhancement
waiting-for-feedback
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 312
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 2
Description
**Is your feature request related to a problem? Please describe.**
For `Election` api, provide a way to close an observed `Listener`.
For now, we can use the `observe` method in `Election`:
```
void observe(ByteSequence electionName, Listener listener);
```
to add a listener, but it does not provide a way for users to cancel or close the listener.
**Describe the solution you'd like**
Provide a way for users to close or cancel the listener.
Contributor guide
Assessment
This issue has not been assessed yet.