fix: make getNetworkModuleStatus not be async so we don't need to wait to get the async function if we have a callback
This commit is contained in:
parent
490291f1e0
commit
a72651e924
|
@ -23,12 +23,12 @@ export const connectModule = kernelEnv
|
|||
export const log = kernelEnv ? logKernel : logModule;
|
||||
export const logErr = kernelEnv ? logErrKernel : logErrModule;
|
||||
|
||||
export async function getNetworkModuleStatus(
|
||||
export function getNetworkModuleStatus(
|
||||
callback?: any,
|
||||
module?: string,
|
||||
// @ts-ignore
|
||||
CM: connectModuleBound = connectModule.bind(null, module),
|
||||
): Promise<void | (() => Promise<void>)> {
|
||||
): Promise<void> | (() => Promise<void>) {
|
||||
let recvUpdate = (data) => {
|
||||
callback?.(data);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue