본문 바로가기

조용한 담장

검색하기
조용한 담장
프로필사진 iosroid

  • 분류 전체보기 (125)
    • Flutter (43)
    • tips (10)
    • Dart (14)
    • Interesthing (6)
    • python (6)
    • kotlin (40)
    • Blogs I read this week (3)
    • Yocto (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
29 30
Tags
  • 클래스
  • 웹크롤러
  • 코틀린
  • variable
  • set
  • pushnamed
  • 파이썬
  • 다트
  • map
  • 플러터
  • Android
  • List
  • 크롤러
  • textstyle
  • DART
  • python
  • texttheme
  • crawler
  • animation
  • 콜렉션
  • import
  • Collection
  • 함수
  • Class
  • package
  • text
  • kotlin
  • Flutter
  • function
  • ML
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Asynchronous (1)

조용한 담장

Dart : Asynchronous programming

Dart : Asynchronous programming Dart 의 비동기 프로그래밍. Asynchrony support 비동기 프로그래밍은 Future or Stream 을 통해 지원한다. 아래 코드를 보면서 감을 잡아보자. main() 에서 첫번째 print() 를 출력하고 두번째 print() 에서 출력할 내용을 await createOrderMessage() 이 리턴할 때 까지 기다린다. createOrderMessage() 에서 var order 변수를 생성하고 값을 설정하기 위해 await getUserOrder() 의 리턴값을 기다린다. getUserOrder() 에서 Future.delayed() 가 4초 후 'Large Latte' 문자열을 리턴한다. await getUserOrder(..

Dart 2019. 10. 24. 17:24
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바