TestingUtils.WithTimeout(Task, TimeSpan, String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 시간 안에 작업을 완료해 보세요.
public static System.Threading.Tasks.Task WithTimeout (this System.Threading.Tasks.Task taskToComplete, TimeSpan timeout, string message);
static member WithTimeout : System.Threading.Tasks.Task * TimeSpan * string -> System.Threading.Tasks.Task
<Extension()>
Public Function WithTimeout (taskToComplete As Task, timeout As TimeSpan, message As String) As Task
매개 변수
- taskToComplete
- Task
실행할 작업
- timeout
- TimeSpan
시간 제한 값
- message
- String
지정된 시간에 작업이 완료되지 않은 경우 TimeoutException에 넣을 메시지입니다.
반환
예외
지정된 시간에 작업이 완료되지 않은 경우