1. Glossaryفەرهەنگی زاراوەکان
async and await
async و await
Used in Kurdish course materials — not yet reviewedلە کەرەستە کوردییەکانی کۆرسدا بەکارهاتووە — هێشتا پێداچوونەوەی بۆ نەکراوە

Definitionپێناسە

The two Dart keywords for asynchronous code: async marks a function as asynchronous, and await, allowed only inside it, pauses that function until a completes, while the keeps the rest of the app running.

دوو وشە کلیلەییەکەی Dartـن بۆ کۆدی ناهاوکات: async کردارێک وەک ناهاوکات نیشانە دەکات و await، کە تەنها لە ناویدا ڕێگەپێدراوە، ئەو کردارە ڕادەگرێت تا تەواو دەبێت، لە کاتێکدا بەشەکانی تری ئەپەکە بەردەوام کارا دەهێڵێتەوە.

Exampleنموونە

Without await the code prints "Instance of 'Future<String>'" instead of the text.

بەبێ await کۆدەکە "⁦Instance of 'Future<String>⁩'" چاپ دەکات لە جیاتی دەقەکە.

Future<void> main() async {
  print('Start');
  final text = await readFile(); // waits here only
  print(text);
  print('End');
}

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

The owner's bilingual paper «جیاوازیی نێوان کرداری ئاسایی و داهاتوویی لە فڵەتەردا» has a section «هەردوو وشەی ”Async“ و ”Await“» and keeps both words in Latin. In-use.

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

Async/Await - Flutter in FocusFlutter · Englishئینگلیزی · 219K viewsبینین · 5K likesلایک · Partبەشی 2:04–5:29 (ofلە 9:11)

Learn more inزیاتر فێربە لە