Make sure you include "using System.Threading.Tasks;" at the top of the file.
https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task?view=net-6.0
Topic:
Graphics & Games
SubTopic:
General
Tags: