Typescript Wait For Async Function To Keep