index.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
  4. <title>PageCoroutineScope</title>
  5. <link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head>
  6. <body>
  7. <div id="container">
  8. <div id="leftColumn"><a href="../../../index.html">
  9. <div id="logo"></div>
  10. </a>
  11. <div id="paneSearch"></div>
  12. <div id="sideMenu"></div>
  13. </div>
  14. <div id="main">
  15. <div id="leftToggler"><span class="icon-toggler"></span></div>
  16. <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Net::com.drake.net.scope/PageCoroutineScope///PointingToDeclaration//320833167">
  17. <div class="navigation-wrapper" id="navigation-wrapper">
  18. <div class="breadcrumbs"><a href="../../../index.html">Net</a>/<a href="../index.html">com.drake.net.scope</a>/<a href="index.html">PageCoroutineScope</a></div>
  19. <div class="pull-right d-flex">
  20. <div id="searchBar"></div>
  21. </div>
  22. </div>
  23. <div class="cover ">
  24. <h1 class="cover"><span>Page</span><wbr></wbr><span>Coroutine</span><wbr></wbr><span>Scope</span></h1>
  25. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">class <a href="index.html">PageCoroutineScope</a>(page: <span data-unresolved-link="com.drake.brv/PageRefreshLayout///PointingToDeclaration/">PageRefreshLayout</span>, dispatcher: <span data-unresolved-link="kotlinx.coroutines/CoroutineDispatcher///PointingToDeclaration/">CoroutineDispatcher</span>) : <a href="../-net-coroutine-scope/index.html">NetCoroutineScope</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  26. </div>
  27. <div class="tabbedcontent">
  28. <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button></div>
  29. <div class="tabs-section-body">
  30. <h2 class="">Functions</h2>
  31. <div class="table" data-togglable="Functions"><a data-name="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fcancel%2F%23java.util.concurrent.CancellationException%3F%2FPointingToDeclaration%2F%2C+com.drake.net.scope%2FAndroidScope%2Fcancel%2F%23kotlin.String%23kotlin.Throwable%3F%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="cancel" id="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fcancel%2F%23java.util.concurrent.CancellationException%3F%2FPointingToDeclaration%2F%2C+com.drake.net.scope%2FAndroidScope%2Fcancel%2F%23kotlin.String%23kotlin.Throwable%3F%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  32. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  33. <div class="main-subrow keyValue ">
  34. <div class=""><span class="inline-flex"><a href="../-net-coroutine-scope/cancel.html">cancel</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fcancel%2F%23java.util.concurrent.CancellationException%3F%2FPointingToDeclaration%2F%2C+com.drake.net.scope%2FAndroidScope%2Fcancel%2F%23kotlin.String%23kotlin.Throwable%3F%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
  35. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  36. </span></span></div>
  37. <div>
  38. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  39. <div>
  40. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="../-net-coroutine-scope/cancel.html">cancel</a>(cause: <span data-unresolved-link="kotlinx.coroutines/CancellationException///PointingToDeclaration/">CancellationException</span>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">open fun <a href="../-android-scope/cancel.html">cancel</a>(message: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, cause: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>? = null)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <a data-name="%5Bcom.drake.net.scope%2FAndroidScope%2Fcatch%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="catch" id="%5Bcom.drake.net.scope%2FAndroidScope%2Fcatch%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  48. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  49. <div class="main-subrow keyValue ">
  50. <div class=""><span class="inline-flex"><a href="../-android-scope/catch.html">catch</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FAndroidScope%2Fcatch%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
  51. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  52. </span></span></div>
  53. <div>
  54. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  55. <div>
  56. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open fun <a href="../-android-scope/catch.html">catch</a>(block: <a href="../-android-scope/index.html">AndroidScope</a>.(<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}): <a href="../-android-scope/index.html">AndroidScope</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  57. </div>
  58. <a data-name="%5Bcom.drake.net.scope%2FAndroidScope%2Fcatch%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="catch" id="%5Bcom.drake.net.scope%2FAndroidScope%2Fcatch%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="%5Bcom.drake.net.scope%2FAndroidScope%2Fcatch%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="catch" id="%5Bcom.drake.net.scope%2FAndroidScope%2Fcatch%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>当作用域内发生异常时回调</div></div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <a data-name="%5Bcom.drake.net.scope%2FAndroidScope%2Fclose%2F%23%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="close" id="%5Bcom.drake.net.scope%2FAndroidScope%2Fclose%2F%23%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  64. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  65. <div class="main-subrow keyValue ">
  66. <div class=""><span class="inline-flex"><a href="../-android-scope/close.html">close</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FAndroidScope%2Fclose%2F%23%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
  67. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  68. </span></span></div>
  69. <div>
  70. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  71. <div>
  72. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="../-android-scope/close.html">close</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <a data-name="%5Bcom.drake.net.scope%2FAndroidScope%2Ffinally%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%3F%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="finally" id="%5Bcom.drake.net.scope%2FAndroidScope%2Ffinally%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%3F%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  80. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  81. <div class="main-subrow keyValue ">
  82. <div class=""><span class="inline-flex"><a href="../-android-scope/finally.html">finally</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FAndroidScope%2Ffinally%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%3F%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
  83. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  84. </span></span></div>
  85. <div>
  86. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  87. <div>
  88. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open fun <a href="../-android-scope/finally.html">finally</a>(block: <a href="../-android-scope/index.html">AndroidScope</a>.(<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>?) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}): <a href="../-android-scope/index.html">AndroidScope</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  89. </div>
  90. <a data-name="%5Bcom.drake.net.scope%2FAndroidScope%2Ffinally%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%3F%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="finally" id="%5Bcom.drake.net.scope%2FAndroidScope%2Ffinally%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%3F%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="%5Bcom.drake.net.scope%2FAndroidScope%2Ffinally%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%3F%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="finally" id="%5Bcom.drake.net.scope%2FAndroidScope%2Ffinally%2F%23kotlin.Function2%5Bcom.drake.net.scope.AndroidScope%2Ckotlin.Throwable%3F%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>无论正常或者异常结束都将最终执行</div></div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="handleError" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  96. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  97. <div class="main-subrow keyValue ">
  98. <div class=""><span class="inline-flex"><a href="handle-error.html">handleError</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
  99. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  100. </span></span></div>
  101. <div>
  102. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  103. <div>
  104. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="handle-error.html">handleError</a>(e: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  105. </div>
  106. <a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="handleError" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="handleError" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>错误处理</div></div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <a data-name="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Flaunch%2F%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="launch" id="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Flaunch%2F%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  112. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  113. <div class="main-subrow keyValue ">
  114. <div class=""><span class="inline-flex"><a href="../-net-coroutine-scope/launch.html">launch</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Flaunch%2F%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
  115. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  116. </span></span></div>
  117. <div>
  118. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  119. <div>
  120. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="../-net-coroutine-scope/launch.html">launch</a>(block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="../-net-coroutine-scope/index.html">NetCoroutineScope</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <a data-name="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fpreview%2F%23kotlin.Boolean%23kotlin.Boolean%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="preview" id="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fpreview%2F%23kotlin.Boolean%23kotlin.Boolean%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  128. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  129. <div class="main-subrow keyValue ">
  130. <div class=""><span class="inline-flex"><a href="../-net-coroutine-scope/preview.html">preview</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fpreview%2F%23kotlin.Boolean%23kotlin.Boolean%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
  131. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  132. </span></span></div>
  133. <div>
  134. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  135. <div>
  136. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="../-net-coroutine-scope/preview.html">preview</a>(ignore: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false, animate: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false, block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="../-android-scope/index.html">AndroidScope</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  137. </div>
  138. <a data-name="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fpreview%2F%23kotlin.Boolean%23kotlin.Boolean%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="preview" id="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fpreview%2F%23kotlin.Boolean%23kotlin.Boolean%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fpreview%2F%23kotlin.Boolean%23kotlin.Boolean%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="preview" id="%5Bcom.drake.net.scope%2FNetCoroutineScope%2Fpreview%2F%23kotlin.Boolean%23kotlin.Boolean%23kotlin.coroutines.SuspendFunction1%5Bkotlinx.coroutines.CoroutineScope%2Ckotlin.Unit%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>&quot;预览&quot;作用域 该函数一般用于缓存读取, 只在第一次启动作用域时回调 该函数在作用域<a href="../-net-coroutine-scope/launch.html">NetCoroutineScope.launch</a>之前执行 函数内部所有的异常都不会被抛出, 也不会终止作用域执行</div></div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <h2 class="">Properties</h2>
  145. <div class="table" data-togglable="Properties"><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="animate" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  146. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  147. <div class="main-subrow keyValue ">
  148. <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">animate</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
  149. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  150. </span></span></div>
  151. <div>
  152. <div class="title">
  153. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="animate" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">var <a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">animate</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="coroutineContext" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  159. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  160. <div class="main-subrow keyValue ">
  161. <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">coroutineContext</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
  162. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  163. </span></span></div>
  164. <div>
  165. <div class="title">
  166. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="coroutineContext" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">open override val <a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">coroutineContext</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines/-coroutine-context/index.html">CoroutineContext</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="dispatcher" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  172. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  173. <div class="main-subrow keyValue ">
  174. <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">dispatcher</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
  175. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  176. </span></span></div>
  177. <div>
  178. <div class="title">
  179. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="dispatcher" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">val <a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">dispatcher</a>: <span data-unresolved-link="kotlinx.coroutines/CoroutineDispatcher///PointingToDeclaration/">CoroutineDispatcher</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Findex%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="index" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Findex%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  185. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  186. <div class="main-subrow keyValue ">
  187. <div class=""><span class="inline-flex"><a href="--index--.html">index</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Findex%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
  188. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  189. </span></span></div>
  190. <div>
  191. <div class="title">
  192. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Findex%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="index" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Findex%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">val <a href="--index--.html">index</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fpage%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="page" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fpage%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  198. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  199. <div class="main-subrow keyValue ">
  200. <div class=""><span class="inline-flex"><a href="page.html">page</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fpage%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
  201. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  202. </span></span></div>
  203. <div>
  204. <div class="title">
  205. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fpage%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="page" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2Fpage%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">val <a href="page.html">page</a>: <span data-unresolved-link="com.drake.brv/PageRefreshLayout///PointingToDeclaration/">PageRefreshLayout</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="scopeGroup" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
  211. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  212. <div class="main-subrow keyValue ">
  213. <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">scopeGroup</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
  214. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  215. </span></span></div>
  216. <div>
  217. <div class="title">
  218. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="scopeGroup" id="%5Bcom.drake.net.scope%2FPageCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">val <a href="index.html#%5Bcom.drake.net.scope%2FPageCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">scopeGroup</a>: <span data-unresolved-link="kotlinx.coroutines/CoroutineExceptionHandler///PointingToDeclaration/">CoroutineExceptionHandler</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
  228. </div>
  229. </div>
  230. </body>
  231. </html>