mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 14:31:28 +00:00
Minor improvements to help asc -h
This commit is contained in:
@ -98,7 +98,11 @@ class Control {
|
||||
/** Tests whether the collector is currently paused. */
|
||||
get paused(): bool { return (this.state & Control.PAUSED_BIT) != 0; }
|
||||
/** Sets whether the collector is currently paused. */
|
||||
set paused(paused: bool) { this.state = paused ? this.state |= Control.PAUSED_BIT : this.state &= ~Control.PAUSED_BIT; }
|
||||
set paused(paused: bool) {
|
||||
this.state = paused
|
||||
? this.state |= Control.PAUSED_BIT
|
||||
: this.state &= ~Control.PAUSED_BIT;
|
||||
}
|
||||
|
||||
///////////////////////////////// Methods ///////////////////////////////////
|
||||
|
||||
|
Reference in New Issue
Block a user