TaskAwaiter<TResult> 구조체

정의

비동기 작업의 완료를 대기하고 결과에 대한 매개 변수를 제공하는 개체를 나타냅니다.

generic <typename TResult>
public value class TaskAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct TaskAwaiter<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
public readonly struct TaskAwaiter<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type TaskAwaiter<'Result> = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure TaskAwaiter(Of TResult)
Implements ICriticalNotifyCompletion

형식 매개 변수

TResult

작업의 결과입니다.

상속
TaskAwaiter<TResult>
구현

설명

이 형식은 컴파일러 전용입니다.

속성

Name Description
IsCompleted

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

비동기 작업이 완료되었는지 여부를 나타내는 값을 가져옵니다.

메서드

Name Description
GetResult()

비동기 작업이 완료될 때까지 대기를 종료합니다.

OnCompleted(Action)

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

개체가 비동기 작업이 완료되는 대기를 중지할 때 TaskAwaiter<TResult> 수행할 작업을 설정합니다.

UnsafeOnCompleted(Action)

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

이 awaiter와 연결된 비동기 작업에 대한 연속 작업을 예약합니다.

적용 대상