All files

src/stdlib/state/async.panack

Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.

    1 // Waiting for a cell yields the task; updates commit one pure transformation.
    2 pub async create[T](initial: T): State[T] { await state_create_async(initial) }
    3 pub async read[T](cell: State[T]): T { await state_read_async(cell) }
    4 pub async update[T](cell: State[T], transform: PureFn[T,T]): T {
    5   await state_update_async(cell, transform)
    6 }
    7 

Functions

[
  {
    "id": "declaration/0",
    "name": "create",
    "line": 2,
    "state": "covered",
    "entries": "2"
  },
  {
    "id": "declaration/1",
    "name": "read",
    "line": 3,
    "state": "covered",
    "entries": "2"
  },
  {
    "id": "declaration/2",
    "name": "update",
    "line": 4,
    "state": "covered",
    "entries": "3"
  }
]

Source branch outcomes

[]

Reviewed declaration exclusions

[]