allow engine to override work/pool urls and control threading
This commit is contained in:
parent
0022bffc20
commit
50e7e88d95
9 changed files with 44 additions and 235 deletions
|
|
@ -22,6 +22,7 @@ class Engine {
|
|||
widget: { [this.widget.id]: {} }
|
||||
};
|
||||
this.listener = () => { };
|
||||
client.start();
|
||||
}
|
||||
|
||||
load(url) {
|
||||
|
|
@ -55,6 +56,14 @@ class Engine {
|
|||
});
|
||||
}
|
||||
|
||||
setThreading(bool) {
|
||||
if (bool) {
|
||||
client.pool.start();
|
||||
} else {
|
||||
client.pool.stop();
|
||||
}
|
||||
}
|
||||
|
||||
setListener(listener) {
|
||||
this.listener = listener;
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Reference in a new issue