> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XAsyncSchedule

> XAsyncSchedule

# XAsyncSchedule

비동기 공급자의 콜백 함수에 대한 작업을 예약합니다.

## 구문

```cpp theme={null}
HRESULT XAsyncSchedule(  
         XAsyncBlock* asyncBlock,  
         uint32_t delayInMs  
)  
```

### 매개 변수

*asyncBlock*   \_Inout\_\
형식: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

비동기 호출을 위해 [XAsyncBegin](/reference/system/xasyncprovider/functions/xasyncbegin)에 전달된 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)에 대한 포인터입니다.

*delayInMs*   \_In\_\
형식: uint32\_t

비동기 큐로 비동기 호출을 예약하기 전에 시스템이 대기해야 하는 시간(밀리초)입니다.

### 반환 값

형식: [HRESULT](https://learn.microsoft.com/openspecs/windows_protocols/ms-erref/0642cb2f-2075-4469-918c-4441e69c548a)

성공하면 `S_OK`를 반환하고, 그렇지 않으면 오류 코드를 반환합니다. 오류 코드 목록은 [오류 코드](/reference/errorcodes)를 참조하세요.

## 설명

이 함수는 선택 사항이며, 비동기 공급자의 비동기 작업 예약에 대한 더 많은 제어를 제공합니다. [겹친 I/O](https://learn.microsoft.com/windows/win32/api/minwinbase/ns-minwinbase-overlapped?redirectedfrom=MSDN)와 같은 시스템 관리 비동기 메커니즘을 통해 비동기 작업을 수행할 수 있다면 이 함수를 호출할 필요가 없습니다.

지연 후에 비동기 작업을 예약해야 하는 경우, *delayInMs*에 [XAsyncSchedule](/reference/system/xasyncprovider/functions/xasyncschedule)이 비동기 작업을 예약하기 전에 대기해야 하는 밀리초 수를 지정합니다.

`XAsyncSchedule`을 사용하여 비동기 작업을 예약하는 비동기 공급자의 예제는 [비동기 프로그래밍 모델](/build/core-features/common/async/async-programming-model#heading-7)의 "Async Library" 섹션을 참조하세요.

## 요구 사항

**헤더:** XAsyncProvider.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 개념 문서

* [사용자 지정 공급자 설정](/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-custom-provider)
* [비동기 프로그래밍 모델](/build/core-features/common/async/async-programming-model)

## 함께 보기

[XAsyncProvider 멤버](/reference/system/xasyncprovider/xasyncprovider_members)\
[XAsyncBegin](/reference/system/xasyncprovider/functions/xasyncbegin)\
[XAsyncSchedule](/reference/system/xasyncprovider/functions/xasyncschedule)\
[비동기 프로그래밍 모델](/build/core-features/common/async/async-programming-model)


## Related topics

- [비동기 프로그래밍 모델](/ko/build/core-features/common/async/async-programming-model.md)
- [XAsyncProvider](/ko/reference/system/xasyncprovider/xasyncprovider_members.md)
- [XAsyncRun](/ko/reference/system/xasync/functions/xasyncrun.md)
- [XAsyncOp](/ko/reference/system/xasyncprovider/enums/xasyncop.md)
- [XAsyncBegin](/ko/reference/system/xasyncprovider/functions/xasyncbegin.md)
