We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e368b9f commit 1b22f34Copy full SHA for 1b22f34
WebApiClient/TaskExtend.cs
@@ -110,22 +110,5 @@ public static ITask<TResult> HandleAsDefaultWhenException<TResult>(this ITask<TR
110
};
111
return task.Handle().WhenCatch<Exception>(func);
112
}
113
-
114
115
- /// <summary>
116
- /// 使用工作线程包装请求并同步等待结果
117
- /// </summary>
118
- /// <typeparam name="TResult"></typeparam>
119
- /// <param name="task"></param>
120
- /// <exception cref="ArgumentNullException"></exception>
121
- /// <returns></returns>
122
- public static TResult Wait<TResult>(this ITask<TResult> task)
123
- {
124
- if (task == null)
125
126
- throw new ArgumentNullException(nameof(task));
127
- }
128
- return Task.Run(() => task.InvokeAsync().Result).Result;
129
130
131
0 commit comments