import { message } from "antd";
const loading_loading = async function() {
    let title = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 'Loading...', processor = arguments.length > 1 ? arguments[1] : void 0;
    let hide = null;
    const loading = setTimeout(()=>{
        hide = message.loading(title);
    }, 100);
    try {
        return await processor();
    } finally{
        null == hide || hide();
        clearTimeout(loading);
    }
};
export { loading_loading as loading };
