lookup

inline suspend fun <R> lookup(block: (List<T>) -> R): R(source)

Provides access to the internal collection in an immutable form. Please do only use the collection inside the block lambda, as only there thread-safety can be guaranteed.