Handle any pending events in blocking mode with a sensible timeout.

C# | Visual Basic | Visual C++ |
public static int HandleEvents( MonoUsbSessionHandle sessionHandle )
Public Shared Function HandleEvents ( _ sessionHandle As MonoUsbSessionHandle _ ) As Integer
public: static int HandleEvents( [InAttribute] MonoUsbSessionHandle^ sessionHandle )

- sessionHandle (MonoUsbSessionHandle)
- A valid MonoUsbSessionHandle.

0 on success, or a MonoUsbError code on other failure.

This timeout is currently hardcoded at 2 seconds but we may change this if we decide other values are more sensible. For finer control over whether this function is blocking or non-blocking, or the maximum timeout, use libusb_handle_events_timeout instead.
