Name
wait
Synopsis
$ntfy
->wait([timeout
])
The wait
method
is inherited from the Win32::IPC package. It waits for the
notification object to signal 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:
+1
The object is signaled.
0
Timed out.
undef
An error occurred.
Use reset
on the object
after wait
if you wish to
continue monitoring.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.