Implement an async set-command for devices that can go offline
Created by: jeblad
Is your feature request related to a problem? Please describe. Some settings can only be changed when the device is online, but it is not given that the device is actually online when it is changed.
Describe the solution you'd like
Some settings are done before other following events that will make the device go online. For example a change host
before typing. That makes it possible to let the change request linger on for a few seconds when the device is offline, in anticipation of it going online when the user starts typing. When the device goes online the change is done before any following events are processed.
An obvious implementation is to make a set-async
that has non-blocking behavior, and which does the change within some timeframe or fail if the device does not go online within the timeframe.
Describe alternatives you've considered In some cases it is possible to show a notification to the user informing him/her the change request has failed.