We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
時間のかかる処理を扱ってみましょう。
fetchWeather()
syncFetchWeather()
Dart の実行モデルはシングルスレッド・イベントループです。
そのため、そのままだと画面が固まってしまい CircularProgressIndicator は表示されません。
よって、このようにスレッドをブロックしてしまうような処理の場合は isolates を使用します。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
スレッドブロック
時間のかかる処理を扱ってみましょう。
課題
fetchWeather()
からsyncFetchWeather()
に変更する動作イメージ
ヒント
Dart の実行モデルはシングルスレッド・イベントループです。
そのため、そのままだと画面が固まってしまい CircularProgressIndicator は表示されません。
よって、このようにスレッドをブロックしてしまうような処理の場合は isolates を使用します。
参考資料
The text was updated successfully, but these errors were encountered: