wait method is inherited from the Win32::IPC package.
It waits for the notification object to become signaled when it detects
a change. timeout is the maximum time to
wait (in milliseconds). If timeout is omitted, the method waits forever.
If timeout is 0, the function returns immediately.
The function returns the following values:
The object is signaled
An error occurred
reset on the object after
wait if you wish to continue