Added a global wait promise
Added asynchronous closure update