Checks if the given API is async or not.