Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbourSmith committed Mar 13, 2022
1 parent d5f900e commit 587220a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/js/molecules/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export default class Code extends Atom {

this.waitOnComingInformation() //This sends a chain command through the tree to lock all the inputs which are down stream of this one. It also cancels anything processing if this atom was doing a calculation already.

/**
* Indicates that this atom is computing
* @type {boolean}
*/
this.processing = true
this.decreaseToProcessCountByOne()

Expand All @@ -124,8 +128,12 @@ export default class Code extends Atom {
}
this.processing = false
})

this.cancelProcessing = terminate //This can be called to interrupt the computation

/**
* This can be called to interrupt the computation
* @type {function}
*/
this.cancelProcessing = terminate
}

}catch(err){this.setAlert(err)}
Expand Down

0 comments on commit 587220a

Please sign in to comment.