Created
January 20, 2018 00:14
-
-
Save benaadams/f79c9564d32ef9aa7fb657af232bce27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IAwaitable<out TResult> : ICriticalNotifyCompletion | |
| { | |
| bool IsCompleted { get; } | |
| TResult GetResult(); | |
| } | |
| public static class AwaitableExtensions | |
| { | |
| public static IAwaitable<TResult> GetAwaiter<TResult>(this IAwaitable<TResult> source) | |
| { | |
| return source; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment