Dear S S,
I was checking the example and this implementation was left blank.
This is depending of the implementation, in this example when using the commands to communicate with the device there's the next macro: MS_COMMAND_DATA_TIMEOUT_MS with the default value of 10000 ms.
Looking in other sources, the most common value is 5 seconds, so depending of your application you have a wide margin to implement this timeout.
Best Regards,
Alexis Andalon