initial support for conference and queues

This commit is contained in:
Dave Horton
2020-05-06 15:27:24 -04:00
parent 419c5ea9fd
commit a0508a2494
18 changed files with 711 additions and 68 deletions

22
lib/tasks/leave.js Normal file
View File

@@ -0,0 +1,22 @@
const Task = require('./task');
const {TaskName} = require('../utils/constants');
class TaskLeave extends Task {
constructor(logger, opts, parentTask) {
super(logger, opts);
}
get name() { return TaskName.Leave; }
async exec(cs, ep) {
await super.exec(cs);
await this.awaitTaskDone();
}
async kill(cs) {
super.kill(cs);
this.notifyTaskDone();
}
}
module.exports = TaskLeave;