All I need to do is write a simple async function that returns something. Something akin to
async def diss(lis):
x = []
for i in lis:
x.append(i + 1) #the operation is arbitrary, but the input and output of a list is the desired result
return x
lis = [1, 2, 3, 4]
res = await diss(lis)
However, this gives me a syntactical error at await diss(lis)
All I have found online were tutorials where something is printed inside the async function but when trying to return something, I always receive a coroutine or future object.
My goal is to essentially have the loop run asynchronously so to improve performance and then have something returned