Roman Borschel 3a96ebf57f
More insight into Kademlia queries. (#1567)
* [libp2p-kad] Provide more insight and control into Kademlia queries.

More insight: The API allows iterating over the active queries and
inspecting their state and execution statistics.

More control: The API allows aborting queries prematurely
at any time.

To that end, API operations that initiate new queries return the query ID
and multi-phase queries such as `put_record` retain the query ID across all
phases, each phase being executed by a new (internal) query.

* Cleanup

* Cleanup

* Update examples and re-exports.

* Incorporate review feedback.

* Update CHANGELOG

* Update CHANGELOG

Co-authored-by: Max Inden <mail@max-inden.de>
2020-05-16 10:43:09 +02:00
..
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00