I wonder scala would allow to get the resources in a map async kind of way.