- Async / Await function
- TypeScript prend en charge les fonctions asynchrones
- Les fonctions asynchrones sont préfixées par le mot-clé async
- wait suspend l'exécution jusqu'à ce qu'une promesse de retour de fonction asynchrone soit remplie
et déballe la valeur de la promesse renvoyée.
- Pour une fonction async on doit avoir await avec.
-وظيفة المزامنة/الانتظار
- يدعم TypeScript الوظائف غير المتزامنة
- يتم بادئة الوظائف غير المتزامنة بالكلمة الأساسية غير المتزامنة
- انتظر تعليق التنفيذ حتى يتم الوفاء بوعد إرجاع الوظيفة غير المتزامنة
ويفك قيمة الوعد التي تم إرجاعها.
- بالنسبة لوظيفة غير متزامنة يجب أن ننتظر معها.
-Async/Await function
- TypeScript supports asynchronous functions
- Asynchronous functions are prefixed with the async keyword
- wait suspends execution until an asynchronous function return promise is fulfilled
and unpacks the returned promise value.
- For an async function we must have await with it.
Негізгі бет fonctions asynchrones | asynchronous functions | وظائف غير متزامنة
Пікірлер