- wait-for-notifications! CONN #!optional DELAYprocedure
Normally, asynchronous notifications will be piggy-backed on responses after you issue a command to the backend. But sometimes you just want to idle until a notification arrives. You can use wait-for-notifications! to do this. It will wait until either DELAY (in milliseconds) has passed, or an event arrives on the connection. If DELAY is #f (or not supplied), it will wait forever, until an event arrives.