Use sysLib.wait() when two asynchronously running programs need to communicate through a record in a shared file or database. For example, you can use the function to suspend processing on one program until another program updates the information in the shared record.