You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
La propriété d'accesseur **`disposed`** des instances de {{JSxRef("AsyncDisposableStack")}} retourne un booléen indiquant si cette pile `AsyncDisposableStack` a été libérée ou déplacée par l'une des actions suivantes :
- Appel de sa méthode {{JSxRef("AsyncDisposableStack/disposeAsync", "disposeAsync()")}}
- Appel de sa méthode {{JSxRef("AsyncDisposableStack/move", "move()")}}
- Déclaration avec {{JSxRef("Statements/await_using", "await using")}} et sortie de portée de la variable, ce qui appelle automatiquement la méthode [`[Symbol.asyncDispose]()`](/fr/docs/Web/JavaScript/Reference/Global_Objects/AsyncDisposableStack/Symbol.asyncDispose).
## Exemples
### Vérifier si une pile est libérée
```js
constgestionnaire=newAsyncDisposableStack();
console.log(gestionnaire.disposed); // false
awaitgestionnaire.disposeAsync();
console.log(gestionnaire.disposed); // true
```
## Spécifications
{{Specifications}}
## Compatibilité des navigateurs
{{Compat}}
## Voir aussi
-[Gestion des ressources en JavaScript](/fr/docs/Web/JavaScript/Guide/Resource_management)