Only disallow generators if function is also async