반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 자바
- linebreak
- 프리즈드
- zwj
- 코틀린
- 거리알고리즘
- 에러
- 비동기 처리
- 자료구조
- 완전탐색
- 플러터 동작
- 싱글톤
- flutter
- Render object tree
- Kotlin
- element tree
- 앱아이콘 변경
- dart
- 재귀
- Widget Tree
- Java
- 초기화
- Lazy
- dfs
- 프로그래머스
- Android
- 알고리즘
- 플러터
- Singleton
- IOS
Archives
- Today
- Total
목록Asynchronous (1)
모바일 개발하는 자바리안의 메모장
Flutter(dart) - 비동기 프로그래밍 (Future)
Flutter 의 비동기 로직 처리에 사용되는 대표 키워드 Future, await, async에 간략하게 정리해보려한다. 아래 코드는 dart.dev 에서 비동기 처리의 잘못된 예를 보여주기 위해 제공해 준 코드다 : String createOrderMessage() { var order = fetchUserOrder(); return 'Your order is: $order'; } Future fetchUserOrder() => Future.delayed( const Duration(seconds: 2), () => 'Large Latte', ); void main() { print(createOrderMessage()); } 우선 비동기 처리를 선언하는 Future 키워드를 살펴보자. 있다가 다 처..
Flutter
2022. 4. 1. 22:48