index
id: 05ec07ee49a7f0427339ad592a4f27a773c195c30047596b1fa5be3e3e23d3d7
id (bech32): note1qhkq0mjf5lcyyuee44vj5ne85aeur9wrqpr4j6cl5klru03r60tsqxqwa3
sig: 507967332125dad7881ca7483dc24447fb3a389b4420861e220f1905cb8164f80ca31a134d39aad5ca5d886ae4e5c96863ffa858c6d6dab1873a150ef28af6d8
created_at: 2023-09-02 23:40:51 +0900
created_at (unix time): 1693665651
content:
/run js
const f1 = async (sec) => {
return new Promise((resolve) => {
setTimeout(() => { resolve(); }, sec * 100);
});
}
const f = async (sec1, sec2, message) => {
await f1(sec1);
console.log(message, "timing 1", new Date());
await f1(sec2);
console.log(message, "timing 2", new Date());
};
(async () => {
console.log("start", new Date());
await Promise.all([f(1, 2, "first_"), f(2, 2, "second")]);
console.log("finish", new Date());
})();
JSON