spotify / dns-java

DNS wrapper library that provides SRV lookup functionality
Apache License 2.0
206 stars 47 forks source link

feature-request: async lookup support #32

Closed flozano closed 6 years ago

flozano commented 6 years ago

It seems dns-java's resolver actually supports sendAsync method, but there's no way to do async lookups in DnsSrvResolver

flozano commented 6 years ago

Uh... I just saw how it's implemented:

    Thread thread = new ResolveThread(this, query, id, listener);
    thread.setName(name);
    thread.setDaemon(true);
    thread.start();
    return id;

please forget it :)