sociomantic-tsunami / swarm

Asynchronous client/node framework library
Boost Software License 1.0
14 stars 26 forks source link

Implement ClientCore.abortAllRequests #328

Closed nemanja-boric-sociomantic closed 5 years ago

nemanja-boric-sociomantic commented 6 years ago

There's a unimplemented method inside the ClientCore: abortAllRequests which should abort all requests and run their finished notifier.

This can be then used for the abort/reconnect pattern where all requests are finished and the nodes are informed that requests no longer exist by dropping the connection from the client - something that's necessary if the requests support auto-reconnect.

The implementation should be as easy as going through the request set and calling abort on the individual requests.

https://github.com/sociomantic-tsunami/swarm/blob/b3209ee3abcfd737302b099c8ff6fdb333957abf/src/swarm/neo/client/mixins/ClientCore.d#L858

gavin-norman-sociomantic commented 5 years ago

Not needed right now, closing. We can reopen if it's needed at some point.