JamitLabs / Jetworking

A multi-module library providing a user-friendly interface for common networking tasks
https://JamitLabs.github.io/Jetworking/
MIT License
4 stars 3 forks source link

CancellableRequest missleading naming #61

Open mrylmz opened 3 years ago

mrylmz commented 3 years ago

The public interface of the CancellableRequest only includes a cancel method and an identifier. It doesn't contain any informations about a request and is also only intended to be used for a request cancellation.

My suggestion is to rename the CancellableRequest into CancellationToken, RequestToken or define a proper interface to represent a non opaque request.