Moved code for async `getPlatforms` call into `platform.cpp`