예제 #1
0
        public static STask <T> FromResult <T>(T value)
        {
            var sAwaiter = STask <T> .Create();

            sAwaiter.SetResult(value);
            return(sAwaiter);
        }
예제 #2
0
 public static AsyncSTaskMethodBuilder Create() => new AsyncSTaskMethodBuilder(STask.Create());