@tempest/core
Version:
The core of the Tempest Stream Library
21 lines • 416 B
JavaScript
export class MulticastTask {
constructor(run) {
this._run = run;
this.active = true;
}
static create(run) {
return new MulticastTask(run);
}
run(time) {
if (!this.active)
return;
this._run();
}
error(time, err) {
return void 0;
}
dispose() {
this.active = false;
}
}
//# sourceMappingURL=MulticastTask.js.map