Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. public class LolForDimas
  2. {
  3. }
  4.  
  5. public static class LolForDimasExtensions
  6. {
  7.     public static TaskAwaiter GetAwaiter(this LolForDimas asyncOperation)
  8.     {
  9.         return Task.Delay(200).GetAwaiter();
  10.     }
  11. }
  12.  
  13. //using
  14. async Task Lol()
  15. {
  16.     await new LolForDimas();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement