数式ドキュメントの翻訳による定例学習


割り当てられた部分で使用されるコードはすべてCoroutineに適用されます.
suspend fun ~~~~
ほとんどの方法がsuspend fun文法なので、あまり理解できません.
質問したが、まだ分からない!

そしてある先輩は私に公式文書を精読することをお勧めして、最初のCo定例学習With公式文書翻訳!

公式文書を精読するメリットは何ですか?考えました.
もっと詳しく勉強できます.
(まず英語を訳すので…何でも一度は読みます)
  • は細かく学ぶことができ、漏れのない部分があります.
    △ブログなどの検索で勉強すると、見逃す部分もあります.
  • 英語のレベルを高める
  • ?
  • とにかくスタート!
    △間違った知識や誤訳があれば、お知らせください.
    文書リンク:https://kotlinlang.org/docs/coroutines-guide.html
    私が直接実習した羽香草リンク:https://github.com/KyungHyun-Cho/Coroutine-Ex

    一般ガイド


    最終修正日:2021-08-26

    韓国語


    (言語として)Cottlinは、標準ライブラリを介して最低限の低レベルAPIを提供するため、異なるライブラリでCoroutineを使用することができます.
    似たようなパフォーマンスを持つ他の多くの言語とは異なり、asyncおよびawaitは、スペルミスのキーワードでも標準ライブラリの一部でもありません.
    さらに、コトリンのsuspending functionの概念は、非同期動作に未来とプロミスよりも安全で、エラーの少ない抽象概念を提供する.kotlinx.coroutinesはJetBransが開発した豊富なコードライブラリです.
    このガイドは、coroutineで使用可能な多くの高度な原語を含むlaunchasyncなどを含む.
    このガイドは、kotlinx.coroutinesの主な機能に関するガイドであり、例と複数のトピックから構成されています.
    coroutineを使用して例に従うためには、プロジェクトReadMe(クリック)に記載されたkotlinx-coroutines-core dependencyを追加する必要がある.

    テキスト


    Kotlin, as a language, provides only minimal low-level APIs in its standard library to enable various other libraries to utilize coroutines.
    Unlike many other languages with similar capabilities, async and await are not keywords in Kotlin and are not even part of its standard library.
    Moreover, Kotlin's concept of suspending function provides a safer and less error-prone abstraction for asynchronous operations than futures and promises.
    kotlinx.coroutines is a rich library for coroutines developed by JetBrains.
    It contains a number of high-level coroutine-enabled primitives that this guide covers, including launch, async and others.
    This is a guide on core features of kotlinx.coroutines with a series of examples, divided up into different topics.
    In order to use coroutines as well as follow the examples in this guide, you need to add a dependency on the kotlinx-coroutines-core module as explained in the project README.
    (次の部分は翻訳のようにリンクを追加します!)

    Table of contents


    Coルーチンベース-Coルーチンベース
    Hands-on: Intro to coroutines and channels
    Cancellation and timeouts
    Composing suspending functions
    Coroutine context and dispatchers
    Asynchronous Flow
    Channels
    Coroutine exceptions handling
    Shared mutable state and concurrency
    Select expression (experimental)
    Tutorial: Debug coroutines using IntelliJ IDEA
    Tutorial: Debug Kotlin Flow using IntelliJ IDEA

    Additional references


    Guide to UI programming with coroutines
    Coroutines design document (KEEP)
    Full kotlinx.coroutines API reference
    Best practices for coroutines in Android
    Additional Android resources for Kotlin coroutines and flow
    参考にしてください.
    FutureとPromiss:https://ko.wikipedia.org/wiki/%ED%93%A8%EC%B2%98%EC%99%80_%ED%94%84%EB%A1%9C%EB%AF%B8%EC%8A%A4