Definitionپێناسە
An object that stands for a value that will be ready later, after slow work such as a network request, a file operation or a database query. It is first uncompleted, then completes with a value or with an error. JavaScript calls the same idea a Promise.
کە جێگەی نرخێک دەگرێتەوە کە دواتر ئامادە دەبێت، دوای کارێکی هێواش وەک بۆ ڕایەڵە، کارێک لەسەر فایل یان بنکەدراوە. سەرەتا تەواونەبووە، پاشان بە نرخێک یان بە هەڵەیەک تەواو دەبێت. JavaScript هەمان بیرۆکە بە Promise ناو دەبات.
Exampleنموونە
Future<int> is a box that will hold an int: await opens it when it is ready.
Future<int> سندووقێکە کە دواتر intـێکی تێدا دەبێت: await کاتێک ئامادە بوو دەیکاتەوە.
Future<int> fetchCount() async => 15;
void main() async {
final count = await fetchCount();
print(count); // 15
}Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
داهاتوو، نرخی داهاتووەکە، نرخەکانی داهاتوو، نرخێکی داهاتوو، نرخی داهاتووی، نرخەکانی داهاتووی، نرخێکی داهاتووی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
The owner's bilingual paper «جیاوازیی نێوان کرداری ئاسایی و داهاتوویی لە فڵەتەردا» explains Future as «داهاتوو»: something «کە وێنای نرخێک دەکات کە لە داهاتوودا ... بەردەست دەبێت». Proposed: «نرخی داهاتوو» ('future value') from that explanation; in code it stays Future.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Learn more inزیاتر فێربە لە
- Futures, async and await in DartFuture،
asyncوawaitلە Dartـدا - FutureProvider and StreamProviderFutureProvider و StreamProvider
- Getting Data from the Internet: HTTP and JSONوەرگرتنی دراوە لە ئینتەرنێت: HTTP و JSON
- Navigation: Moving Between Screensڕێنیشاندان: جووڵان لە نێوان شاشەکاندا
- State Management with Providerبەڕێوەبردنی دۆخ بە Provider
- Stateless and Stateful Widgetsویجێتە بێدۆخەکان و ویجێتە دۆخدارەکان
- Splash Screensشاشەکانی دەستپێک
- Firebase and Cloud FirestoreFirebase و Cloud Firestore
- ProxyProvider and ChangeNotifierProxyProviderProxyProvider و ChangeNotifierProxyProvider
- Saving Data on the Deviceپاشەکەوتکردنی دراوە لەسەر ئامێرەکە
- Project: A To-Do App with Providersپڕۆژە: ئەپێکی ئەرکەکان بە providerـەکان
- MVVM in Flutter with ProviderMVVM لە Flutterـدا بە Provider