Definitionپێناسە
A marked async that returns a : it can wait for slow work with await without stopping the rest of the program. Its opposite is an ordinary (regular) function, which runs to the end before anything else happens.
کە بە async نیشانە کراوە و دەگەڕێنێتەوە: دەتوانێت بە await چاوەڕێی کاری هێواش بکات بەبێ ئەوەی بەشەکانی تری ڕابگرێت. پێچەوانەکەی کرداری ئاساییە کە تا کۆتایی کار دەکات پێش ئەوەی هیچ شتێکی تر ڕوو بدات.
Exampleنموونە
readFile is asynchronous: main can do other work while the file is read.
readFile : main دەتوانێت لە کاتی خوێندنەوەی فایلەکەدا کاری تر بکات.
Future<String> readFile() async {
await Future.delayed(const Duration(seconds: 3));
return 'file content';
}Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
کرداری داهاتوویی، کردارە ناهاوکاتەکە، کردارە ناهاوکاتەکان، کردارێکی ناهاوکات
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
The owner's bilingual paper «جیاوازیی نێوان کرداری ئاسایی و داهاتوویی لە فڵەتەردا» writes «کردارێکی ناهاوکات» for an async function and, in its conclusion, «کرداری داهاتوویی (ئینگلیزی: Future Function)» against «کرداری ئاسایی (ئینگلیزی: Regular Function)». In-use.