Skip to content

Commit

Permalink
Make async side-effect methods
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed May 29, 2019
1 parent bb04470 commit 649d3bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/perspective/src/js/perspective.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default function(Module) {
* View objects do not stop consuming resources or processing updates when
* they are garbage collected - you must call this method to reclaim these.
*/
view.prototype.delete = function() {
view.prototype.delete = async function() {
_reset_process(this.pool);
this._View.delete();
this.ctx.delete();
Expand Down Expand Up @@ -884,15 +884,15 @@ export default function(Module) {
* Remove all rows in this {@link module:perspective~table} while preserving the schema and
* construction options.
*/
table.prototype.clear = function() {
table.prototype.clear = async function() {
_reset_process(this.pool);
this.gnode.reset();
};

/**
* Replace all rows in this {@link module:perspective~table} the input data.
*/
table.prototype.replace = function(data) {
table.prototype.replace = async function(data) {
_reset_process(this.pool);
this.gnode.reset();
this.update(data);
Expand All @@ -904,7 +904,7 @@ export default function(Module) {
* Table objects do not stop consuming resources or processing updates when
* they are garbage collected - you must call this method to reclaim these.
*/
table.prototype.delete = function() {
table.prototype.delete = async function() {
if (this.views.length > 0) {
throw "Table still has contexts - refusing to delete.";
}
Expand Down

0 comments on commit 649d3bc

Please sign in to comment.