etcd-io / etcd-io/jetcd

[Feature Request] provide a way for users to cancel or close an existing Listener in Election api

Open
#1,229 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.