const promise1 = new Promise((resolve, reject) => {
setTimeout(resolve, 500, "one");
});
const promise2 = new Promise((resolve, reject) => {
setTimeout(resolve, 100, "two");
});
Promise.race([promise1, promise2]).then((value) => {
console.log(value);
// Both resolve, but promise2 is faster
});
// Expected output: "two"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race
MDN Web Docs
Promise.race() - JavaScript | MDN
The Promise.race() static method takes an iterable of promises as input and returns a single Promise. This returned promise settles with the eventual state of the first promise that settles.
👍4
When you apply:
It tells the browser to render the scrollbars in a narrower/thinner style than the default. This improves aesthetics in layouts with tight or minimal designs.
scrollbar-width: thin;
It tells the browser to render the scrollbars in a narrower/thinner style than the default. This improves aesthetics in layouts with tight or minimal designs.
Forwarded from Quera
🤼 «فیتو» مسابقه برنامهنویسی کوئراست که در حوزه هوشمصنوعی با همکاری فدراسیون کشتی ایران برگزار میشود.
🎁 بیش از ۶۰ میلیون تومان جایزه نقدی و کلی هدایای جذاب دیگه…
✔️ فرصت استخدام و همکاری با مرکز نوآوری و هوشمصنوعی فدراسیون کشتی(اکتین)
✔️ گواهینامه معتبر
✔️ وبینار جذاب و تخصصی هوشمصنوعی در ورزش
✔️ فینال حضوری جذاب در کنار بزرگان کشتی ایران!
🌐 اطلاعات بیشتر و ثبتنام رایگان:
🔗 https://quera.org/r/zg3t4
➖➖➖➖
#Quera
🎁 بیش از ۶۰ میلیون تومان جایزه نقدی و کلی هدایای جذاب دیگه…
✔️ فرصت استخدام و همکاری با مرکز نوآوری و هوشمصنوعی فدراسیون کشتی(اکتین)
✔️ گواهینامه معتبر
✔️ وبینار جذاب و تخصصی هوشمصنوعی در ورزش
✔️ فینال حضوری جذاب در کنار بزرگان کشتی ایران!
🌐 اطلاعات بیشتر و ثبتنام رایگان:
🔗 https://quera.org/r/zg3t4
➖➖➖➖
#Quera
👍4
Should concepts like retries, timeouts, circuit breaking, and rate limiting be handled at the application level or at the DevOps/infrastructure level?
Nvidia CEO Jensen Huang issues urgent AI warning: "You’re not going to lose your job to an AI, but you’re going to lose your job to someone who uses AI"
👍7
Forwarded from Pourya Momtaz
Salam everyone!
We're a dynamic team of University of Toronto and York University students building a marketplace SaaS platform. We're looking for a passionate Full Stack Developer to join our team!
Requirements:
• Familiarity with SQL
• Strong knowledge of JavaScript/TypeScript and Python
• Experience with React and modern frontend frameworks
• Understanding of REST APIs and database design
• Familiarity with version control (Git)
Nice to Have:
• Experience with Next.js and FastAPI
• Knowledge of Tailwind CSS and component libraries
• Understanding of CI/CD pipelines
Location: Toronto, ON (Remote-friendly)
Type: Part-time/Full-time
Start Date: Immediate
If you're passionate about building modern web applications and want to join a team of ambitious students, we'd love to hear from you!
Message me to learn more about this position!
We're a dynamic team of University of Toronto and York University students building a marketplace SaaS platform. We're looking for a passionate Full Stack Developer to join our team!
Requirements:
• Familiarity with SQL
• Strong knowledge of JavaScript/TypeScript and Python
• Experience with React and modern frontend frameworks
• Understanding of REST APIs and database design
• Familiarity with version control (Git)
Nice to Have:
• Experience with Next.js and FastAPI
• Knowledge of Tailwind CSS and component libraries
• Understanding of CI/CD pipelines
Location: Toronto, ON (Remote-friendly)
Type: Part-time/Full-time
Start Date: Immediate
If you're passionate about building modern web applications and want to join a team of ambitious students, we'd love to hear from you!
Message me to learn more about this position!