But can I use the values returned by async functio...
# python
h
But can I use the values returned by async functions outside of a Pulumi resource? Ex:
Copy code
async def get_restapi(name):
  result = await apigateway.get_rest_api(name=name)
  return result.id

if get_restapi('test-jenkins') == None:
  rest_api = apigateway.RestApi(name, name=name)
Obviously this wouldn't work but that's the functionality I'm looking for