functionupdate_global_mails() local currentVersion = get_current_version() whiletruedo newerVersion, newerMails = skynet.call(".global_mail_centra", "lua", "fetchNewerMails", currentVersion) if newerVersion != currentVersion then // synchronized to player's mailbox (other module in same process), blocking call currentVersion = newerVersion // update currentVersion to backend data storage end end end skynet.fork(update_global_mails)