using System.Runtime.CompilerServices; using System.Threading.Tasks; // Example 2: await anything public static TaskAwaiter GetAwaiter(this T nonAwaitable) => Task.FromResult(nonAwaitable).GetAwaiter(); // Now we can write code like this await "Hello world"; await 100; await true;