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