rename dispathcer
This commit is contained in:
parent
6b4c6c1eed
commit
0bd161fe9b
@ -31,7 +31,7 @@ type responseOfTask = {
|
|||||||
/**
|
/**
|
||||||
* A Dispatcher to perform a function with a remote
|
* A Dispatcher to perform a function with a remote
|
||||||
*/
|
*/
|
||||||
export class CallDispatcher {
|
export class nopeDispatcher {
|
||||||
|
|
||||||
protected _definedFunctions: Map<number | string, (...args) => Promise<any>>;
|
protected _definedFunctions: Map<number | string, (...args) => Promise<any>>;
|
||||||
protected _runningTasks: Map<number, {
|
protected _runningTasks: Map<number, {
|
||||||
@ -282,8 +282,8 @@ export function getDispatcher(uuid: string, communicator: ICommunicationInterfac
|
|||||||
const _hasDispatcher = _global[_accessor] !== undefined;
|
const _hasDispatcher = _global[_accessor] !== undefined;
|
||||||
|
|
||||||
if (!_hasDispatcher){
|
if (!_hasDispatcher){
|
||||||
_global[_accessor] = new CallDispatcher(communicator);
|
_global[_accessor] = new nopeDispatcher(communicator);
|
||||||
}
|
}
|
||||||
|
|
||||||
return _global[_accessor] as CallDispatcher
|
return _global[_accessor] as nopeDispatcher
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user