sdk / com.memfault.cloud.sdk / ChunkSender / Builder / setChunkQueue

setChunkQueue

fun setChunkQueue(chunkQueue: ChunkQueue): Builder

Provide a custom ChunkQueue that is managed by the caller.

Use this API if you wish to provide a persistent ChunkQueue implementation.

Only clear items from the chunkQueue after calling MemfaultCloud.deinit to avoid concurrency issues with any work that is currently in-flight.

It is safe to add items to the queue at any time.