LazyCheckout Class
Checkout that only updates its view of the tree when explicitly requested. This means that the currentView field will never change unless waitForPendingUpdates() is called.
Signature
/** @sealed */
export declare class LazyCheckout extends Checkout
Extends: Checkout
Constructors
Constructor | Description |
---|---|
(constructor)(tree) | Constructs a new instance of the LazyCheckout class |
Properties
Property | Type | Description |
---|---|---|
latestCommittedView | RevisionView |
Methods
Method | Return Type | Description |
---|---|---|
handleNewEdit(id, result) | void | |
waitForEditsToSubmit() | Promise<void> | |
waitForPendingUpdates() | Promise<void> |
Constructor Details
(constructor)
Constructs a new instance of the LazyCheckout
class
Signature
constructor(tree: SharedTree);
Parameters
Parameter | Type | Description |
---|---|---|
tree | SharedTree | the tree |
Property Details
latestCommittedView
Signature
protected get latestCommittedView(): RevisionView;
Type: RevisionView
Method Details
handleNewEdit
Signature
protected handleNewEdit(id: EditId, result: ValidEditingResult): void;
Parameters
Parameter | Type | Description |
---|---|---|
id | EditId | |
result | ValidEditingResult |
waitForEditsToSubmit
Signature
waitForEditsToSubmit(): Promise<void>;
Returns
Return type: Promise<void>
waitForPendingUpdates
Signature
waitForPendingUpdates(): Promise<void>;
Returns
Return type: Promise<void>