Skip to content

Commit

Permalink
Merge pull request #62 from AKy3HELljOB/#61
Browse files Browse the repository at this point in the history
#61 - add flush to IOperation
  • Loading branch information
lenchv authored Mar 15, 2024
2 parents e49b8d9 + 9352ce9 commit 3e17a9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/contracts/IOperation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export default interface IOperation {
* Fetch schema and a portion of data
*/
fetch(orientation?: FetchOrientation): Promise<Status>;
/**
* Resets `this.data` buffer.
* Needs to be called when working with massive data.
*/
flush(): void;
/**
* Request status of operation
*
Expand Down
6 changes: 6 additions & 0 deletions lib/contracts/IOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export default interface IOperation {
*/
fetch(orientation?: FetchOrientation): Promise<Status>;

/**
* Resets `this.data` buffer.
* Needs to be called when working with massive data.
*/
flush(): void;

/**
* Request status of operation
*
Expand Down

0 comments on commit 3e17a9b

Please sign in to comment.