How To Create Async Function In Typescript Vs Go