This is a breaking change. The timeout argument to get_event is now an Option. Passing it 'None' causes get_event to never timeout. Passing 'Some(duration)' times out after 'duration'.
The examples are updated to use the new interface.
Note that the documentation already specifies this behaviour so I didn't update it.
Hiya and thank you very much for the PR! This all looks good to me, and thank you very much for updating the examples as well. I'll get this merged now. Oh and good catch on the ':wq' in the docs!
This is a breaking change. The timeout argument to get_event is now an Option. Passing it 'None' causes get_event to never timeout. Passing 'Some(duration)' times out after 'duration'.
The examples are updated to use the new interface.
Note that the documentation already specifies this behaviour so I didn't update it.
This is my first rust PR! Feedback is welcome.