Typescript Async Functions As Mathematical Models