Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import kotlinx.coroutines.sync.withLock
* Simple holder that can ref-count items by a given key.
*/
internal class RefCountedResource<Key, T>(
private val create: suspend (Key) -> T,
private val create: (Key) -> T,
private val onRelease: (suspend (Key, T) -> Unit)? = null
) {
private val items = mutableMapOf<Key, Item>()
Expand Down