Does Modal.confirm in antd have to use Promise to delay loading?

Does the delayed loading of

antd have to be implemented with Promise

the following is the official demo

https://codesandbox.io/s/rr78lq91yq

import { Modal, Button } from "antd";
const confirm = Modal.confirm;

function showConfirm() {
  confirm({
    title: "Do you want to delete these items?",
    content: "When clicked the OK button, this dialog will be closed after 1 second",
    onOk() {
      return new Promise((resolve, reject) => {
        setTimeout(Math.random() > 0.5 ? resolve : reject, 1000);
      }).catch(() => console.log("Oops errors!"));
    },
    onCancel() {},
  });
}
Mar.22,2021

there are examples in the official documentation
https://ant.design/components.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bec0fe-31310.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bec0fe-31310.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?