ENع
الدرس 27 · How programs really run

Async code and the event loop

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

Most of a download is waiting: for the network, for the disk. Async code puts that waiting to use. Watch Python's event loop run three downloads on one thread, one task at a time, parking each task while it waits and resuming it when its data is ready, so all three finish in about the time of the slowest.

11 دقيقة10 خطوات5 أسئلةIntermediate
شكل 27 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.