mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-31 21:52:02 +08:00
15 lines
337 B
TypeScript
15 lines
337 B
TypeScript
export const getOneNamespaceEffectsLoading = (
|
|
namespace: string,
|
|
effects: Record<string, boolean>,
|
|
effectNames: Array<string>,
|
|
) => {
|
|
return effectNames.some(
|
|
(effectName) => effects[`${namespace}/${effectName}`],
|
|
);
|
|
};
|
|
|
|
export const delay = (ms: number) =>
|
|
new Promise((resolve) => {
|
|
setTimeout(resolve, ms);
|
|
});
|