in Confidence/src/main/java/com/spotify/confidence/EventStorage.kt [20:32]
suspend fun rollover()
suspend fun writeEvent(event: EngineEvent)
suspend fun batchReadyFiles(): List<File>
suspend fun eventsFor(file: File): List<EngineEvent>
fun onLowMemoryChannel(): Channel<List<File>>
fun stop()
}
internal class EventStorageImpl(
private val context: Context,
dispatcher: CoroutineDispatcher = Dispatchers.IO,
private val maxStorage: Long = MAX_STORAGE
) : EventStorage {