roblans / ZWave4Net

ZWave4Net is a .NET library that interfaces with the Aeotec / Aeon Labs Z-Stick.
MIT License
41 stars 34 forks source link

Adding cancellation token support #20

Closed ofir-haviv closed 6 years ago

ofir-haviv commented 6 years ago

Adding cancellation token support to all public APIs. Note that the cancel action only effect the thread waiting time in the sending/waiting to response actions. This is not about sending cancel on the ZWave network.

This chance modifies many files, but all the changes are the same - add CancellationToken to the async API. All the cancellation login is in ZWaveChannel.cs. The rest is just parameter pass through. This should NOT break existing API. this only expends it.