Handle any pending events.

C# | Visual Basic | Visual C++ |
public static int HandleEventsTimeout( MonoUsbSessionHandle sessionHandle, ref UnixNativeTimeval tv )
Public Shared Function HandleEventsTimeout ( _ sessionHandle As MonoUsbSessionHandle, _ ByRef tv As UnixNativeTimeval _ ) As Integer
public: static int HandleEventsTimeout( [InAttribute] MonoUsbSessionHandle^ sessionHandle, UnixNativeTimeval% tv )

- sessionHandle (MonoUsbSessionHandle)
- A valid MonoUsbSessionHandle.
- tv (UnixNativeTimeval%)
- The maximum time to block waiting for events, or zero for non-blocking mode

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

libusb determines "pending events" by checking if any timeouts have expired and by checking the set of file descriptors for activity.
If a non-zero timeval is passed and no events are currently pending, this function will block waiting for events to handle up until the specified timeout. If an event arrives or a signal is raised, this function will return early.
