A simple and convenient function that resolves promises in data structures like arrays, objects, Maps, and Sets.