> ## 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.

# XblCleanupAsync

> XblCleanupAsync

# XblCleanupAsync

Recupera imediatamente todos os recursos associados à biblioteca.

## Sintaxe

```cpp theme={null}
HRESULT XblCleanupAsync(  
         XAsyncBlock* async  
)  
```

### Parâmetros

*async*   \
Tipo: XAsyncBlock\*

O AsyncBlock desta operação.

### Valor retornado

Tipo: HRESULT

Código de retorno HRESULT desta operação de API.

## Comentários

Se você chamou XblMemSetFunctions(), chame esta função antes de desligar o gerenciador de memória do seu aplicativo. É responsabilidade do jogo aguardar a conclusão de quaisquer chamadas Async pendentes antes de chamar XblCleanup. Se houver tarefas assíncronas em segundo plano iniciadas pela XSAPI pendentes, esta API aguardará a conclusão delas.

## Requisitos

**Cabeçalho:** xbox\_live\_global\_c.h

**Biblioteca:** Microsoft.Xbox.Services.14x.GDK.C.lib

## Confira também

[xbox\_live\_global\_c](/pt-BR/reference/live/xsapi-c/xbox_live_global_c/xbox_live_global_c_members)


## Related topics

- [Como usar as APIs dos serviços do XBOX (XSAPIs)](/pt-BR/services/xbox-services/fundamentals/xbox-services-api/live-gs-xbl-apis.md)
- [HCCleanupAsync](/pt-BR/reference/live/httpclient/httpclient/functions/hccleanupasync.md)
- [HCCleanup](/pt-BR/reference/live/httpclient/httpclient/functions/hccleanup.md)
- [PartyXblManager::Cleanup](/pt-BR/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_cleanup.md)
- [HCTraceCleanup](/pt-BR/reference/live/httpclient/trace/functions/hctracecleanup.md)
