Writes
The writes this client makes to one part of the server's state, kept so that a read of that part never undoes an edit made here:
- A read is used only if no write began while it was on its way, nor was on its way when it began. Otherwise it is read again once the writes are done (settled).
- A value read replaces the one on screen only where that is what the server was last known to hold; otherwise it is an edit not yet sent.
Values are recorded against the thing they belong to, usually the Var holding them, compared by identity.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Sets a Var to a value read from the server, unless edited here.
Sets a Var to a value read from the server, unless edited here.
Type parameters
- X
-
The value.
Value parameters
- field
-
The variable, which the value is recorded against.
- value
-
The value read.
Attributes
Whether the server has had its say on a value: no write of it is on its way, and it is the value last held or the last written, taken or not.
Whether the server has had its say on a value: no write of it is on its way, and it is the value last held or the last written, taken or not.
Value parameters
- thing
-
What the value belongs to.
- value
-
The value.
Attributes
- Returns
-
Whether the server has had its say on the value.
Records a value as the one the server holds, as when it is read or made.
Records a value as the one the server holds, as when it is read or made.
Value parameters
- thing
-
What the value belongs to.
- value
-
The value.
Attributes
Whether the server holds a value, or will once the writes on their way land, so that writing it again is needless.
Whether the server holds a value, or will once the writes on their way land, so that writing it again is needless.
Value parameters
- thing
-
What the value belongs to.
- value
-
The value.
Attributes
- Returns
-
Whether writing the value again is needless.
Whether no write is on its way.
Whether no write is on its way.
Attributes
Whether a value is what the server was last known to hold, with no write of it on its way. A thing never recorded counts as unedited.
Whether a value is what the server was last known to hold, with no write of it on its way. A thing never recorded counts as unedited.
Value parameters
- thing
-
What the value belongs to.
- value
-
The value.
Attributes
- Returns
-
Whether the value is unedited here.
Counts a write of a value, recording it as held if the server takes it.
Counts a write of a value, recording it as held if the server takes it.
The write counts from the moment this is called until request answers, so subscribe at once (Requests.fire), and make request emit exactly once, failures included. A write that never answers freezes every later read of this part for good.
Value parameters
- request
-
The write, emitting once whether the server took it.
- thing
-
What the value belongs to.
- value
-
The value written.
Attributes
- Returns
-
The write, counted.
Counts a write of something with no recorded value, under the same rules as write.
Counts a write of something with no recorded value, under the same rules as write.
Type parameters
- X
-
The write's answer.
Value parameters
- request
-
The write, emitting exactly once when answered, however it went.
Attributes
- Returns
-
The write, counted.
Concrete fields
Emits whenever the last write on its way has been answered.
Emits whenever the last write on its way has been answered.