Serial

com.alecdorrington.laminarcomponents.Requests.Serial
final class Serial[K, V](send: (K, V) => EventStream[Unit])

Fires each key's changes one at a time, so that two quick changes never apply out of order. One made while its key is in flight waits, replacing any already waiting, as only the latest matters.

Type parameters

K

What a change is to.

V

A change.

Value parameters

send

The request making a change, emitting once when answered.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(key: K, change: V): Unit

Makes a change, at once or once the key's last change has answered.

Makes a change, at once or once the key's last change has answered.

Value parameters

change

The change.

key

What the change is to.

Attributes