Package-level declarations

Types

Link copied to clipboard

Append a new pending task to the tail of the list.

Link copied to clipboard

Clear every task from the list.

Link copied to clipboard

Complete an in-progress task.

Link copied to clipboard
@Serializable
data class EphemeralTask(val id: Int, val description: String, val status: TaskStatus = TaskStatus.Pending)

A single task on an EphemeralTaskList.

Link copied to clipboard

In-memory task list with a small state machine. Safe to share across coroutines — every public method takes a Mutex internally.

Link copied to clipboard

Insert a new pending task after an existing one identified by id.

Link copied to clipboard

List every task in the list, in order.

Link copied to clipboard

Prepend a new pending task at the head of the list.

Link copied to clipboard

Start a pending task (transition to IN_PROGRESS).

Link copied to clipboard
@Serializable
enum TaskStatus : Enum<TaskStatus>

Lifecycle of an EphemeralTask.

Functions

Link copied to clipboard

Convenience factory: every task tool wired to one list.