다음을 통해 공유


AsyncLROPoller 클래스

장기 실행 작업에 대한 비동기 폴러입니다.

상속
AsyncLROPoller
AsyncLROPoller

생성자

AsyncLROPoller(client: Any, initial_response: Any, deserialization_callback: Callable[[Any], PollingReturnType_co], polling_method: AsyncPollingMethod[PollingReturnType_co])

매개 변수

Name Description
client
필수

파이프라인 서비스 클라이언트

initial_response
필수

초기 호출 응답

deserialization_callback
필수
callable 또는 <xref:msrest.serialization.Model>

Response를 사용하고 역직렬화된 개체를 반환하는 콜백입니다. Model의 하위 클래스가 제공되면 "deserialize"를 콜백으로 전달합니다.

polling_method
필수

채택할 폴링 전략

메서드

continuation_token

나중에 폴러를 다시 시작할 수 있는 연속 토큰을 반환합니다.

done

장기 실행 작업의 상태 확인합니다.

from_continuation_token
polling_method

이 폴러에 연결된 폴링 메서드를 반환합니다.

result

장기 실행 작업의 결과를 반환합니다.

status

현재 상태 문자열을 반환합니다.

wait

장기 실행 작업을 기다립니다.

continuation_token

나중에 폴러를 다시 시작할 수 있는 연속 토큰을 반환합니다.

continuation_token() -> str

반환

형식 Description
str

불투명 연속 토큰

done

장기 실행 작업의 상태 확인합니다.

done() -> bool

반환

형식 Description

프로세스가 완료되면 'True'이고, 그렇지 않으면 'False'입니다.

from_continuation_token

from_continuation_token(polling_method: AsyncPollingMethod[PollingReturnType_co], continuation_token: str, **kwargs: Any) -> AsyncLROPoller[PollingReturnType_co]

매개 변수

Name Description
polling_method
필수
continuation_token
필수

polling_method

이 폴러에 연결된 폴링 메서드를 반환합니다.

polling_method() -> AsyncPollingMethod[PollingReturnType_co]

반환

형식 Description

이 폴러에 연결된 폴링 메서드입니다.

result

장기 실행 작업의 결과를 반환합니다.

async result() -> PollingReturnType_co

반환

형식 Description
any,

장기 실행 작업의 역직렬화된 리소스(사용 가능한 경우)입니다.

예외

형식 Description

쿼리에 대한 서버 문제입니다.

status

현재 상태 문자열을 반환합니다.

status() -> str

반환

형식 Description
str

현재 상태 문자열

wait

장기 실행 작업을 기다립니다.

async wait() -> None

예외

형식 Description

쿼리에 대한 서버 문제입니다.