ReleasableExecutor
Artifact: androidx.media3:media3-exoplayer
@UnstableApi
public interface ReleasableExecutor extends Executor
An Executor with a dedicated release method to signal when it is not longer needed.
Summary
Public methods |
|
|---|---|
default static ReleasableExecutor |
Creates a |
abstract void |
release()Releases the |
Public methods
from
default static ReleasableExecutor <T extends Executor> from(T executor, Consumer<T> releaseCallback)
Creates a ReleasableExecutor from an Executor and a release callback.
| Parameters | |
|---|---|
<T extends Executor> |
The type of |
T executor |
The |
Consumer<T> releaseCallback |
The release callback, accepting the |
| Returns | |
|---|---|
ReleasableExecutor |
The releasable executor. |