whileNotFinished

fun whileNotFinished(func: () -> Unit = {})

Executes a function while any audio track in the pool is still playing.

Parameters

func

The function to execute.


fun whileNotFinished(id: String, func: () -> Unit = {})

Executes a function while the audio track with the specified ID is still playing.

Parameters

id

The ID of the audio track to monitor.

func

The function to execute.