# Poolable

Artifact: [androidx.tracing:tracing](https://developer.android.com/jetpack/androidx/releases/tracing) [View Source](https://cs.android.com/search?q=file:androidx/tracing/Poolable.kt+class:androidx.tracing.Poolable) Added in [2.0.5](https://developer.android.com/jetpack/androidx/releases/tracing#2.0.5)

*** ** * ** ***

Android/JVM
- android

  ```
  abstract class Poolable<T : Poolable<T>>
  ```
Known direct subclasses [PooledTracePacketArray](https://developer.android.com/reference/kotlin/androidx/tracing/PooledTracePacketArray)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tracing/PooledTracePacketArray` |   |

*** ** * ** ***

Represents an object that can be reused using a `https://developer.android.com/reference/kotlin/androidx/tracing/Pool`. This avoids GC churn.

## Summary

| ### Public functions |
|---|---|---|
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/tracing/Poolable#recycle()()` Recycles the object, and hands it back to the pool. | android |

## Public functions

### recycle

android Added in [2.0.5](https://developer.android.com/jetpack/androidx/releases/tracing#2.0.5)

```
abstract fun recycle(): Unit
```

Recycles the object, and hands it back to the pool.