Javascript – Can I make a closure of an async function to pass as a promise
I have a somedataMap : Map<string, Promise<SomeData>> that I would like to populate. I also have an async function async function getSomeData(someIdentifier:string): Promise<SomeData>, that I would like use as the values in that map Obviously if I do something like…