123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
- <title>StateCoroutineScope</title>
- <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>
- <body>
- <div id="container">
- <div id="leftColumn"><a href="../../../index.html">
- <div id="logo"></div>
- </a>
- <div id="paneSearch"></div>
- <div id="sideMenu"></div>
- </div>
- <div id="main">
- <div id="leftToggler"><span class="icon-toggler"></span></div>
- <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Net::com.drake.net.scope/StateCoroutineScope///PointingToDeclaration//320833167">
- <div class="navigation-wrapper" id="navigation-wrapper">
- <div class="breadcrumbs"><a href="../../../index.html">Net</a>/<a href="../index.html">com.drake.net.scope</a>/<a href="index.html">StateCoroutineScope</a></div>
- <div class="pull-right d-flex">
- <div id="searchBar"></div>
- </div>
- </div>
- <div class="cover ">
- <h1 class="cover"><span>State</span><wbr></wbr><span>Coroutine</span><wbr></wbr><span>Scope</span></h1>
- <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">StateCoroutineScope</a>(state: <span data-unresolved-link="com.drake.statelayout/StateLayout///PointingToDeclaration/">StateLayout</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><p class="paragraph">缺省页作用域</p></div></div>
- </div>
- <div class="tabbedcontent">
- <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Constructors">Constructors</button><button class="section-tab" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button></div>
- <div class="tabs-section-body">
- <h2 class="tabbedcontent">Constructors</h2>
- <div class="table" data-togglable="Constructors"><a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FStateCoroutineScope%2F%23com.drake.statelayout.StateLayout%23kotlinx.coroutines.CoroutineDispatcher%2FPointingToDeclaration%2F%5D%2FConstructors%2F320833167" anchor-label="StateCoroutineScope" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FStateCoroutineScope%2F%23com.drake.statelayout.StateLayout%23kotlinx.coroutines.CoroutineDispatcher%2FPointingToDeclaration%2F%5D%2FConstructors%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue TabbedContent">
- <div class=""><span class="inline-flex"><a href="-state-coroutine-scope.html">StateCoroutineScope</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FStateCoroutineScope%2F%23com.drake.statelayout.StateLayout%23kotlinx.coroutines.CoroutineDispatcher%2FPointingToDeclaration%2F%5D%2FConstructors%2F320833167"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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="-state-coroutine-scope.html">StateCoroutineScope</a>(state: <span data-unresolved-link="com.drake.statelayout/StateLayout///PointingToDeclaration/">StateLayout</span>, dispatcher: <span data-unresolved-link="kotlinx.coroutines/CoroutineDispatcher///PointingToDeclaration/">CoroutineDispatcher</span> = Dispatchers.Main)<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>
- </div>
- </div>
- </div>
- </div>
- </div>
- <h2 class="">Functions</h2>
- <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>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <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="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>) -> <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <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>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <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="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>?) -> <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="handleError" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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%2FStateCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="handleError" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%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%2FStateCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" anchor-label="handleError" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FhandleError%2F%23kotlin.Throwable%2FPointingToDeclaration%2F%5D%2FFunctions%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>错误处理</div></div>
- </div>
- </div>
- </div>
- </div>
- <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>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>.() -> <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>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <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="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>.() -> <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>
- </div>
- <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>"预览"作用域 该函数一般用于缓存读取, 只在第一次启动作用域时回调 该函数在作用域<a href="../-net-coroutine-scope/launch.html">NetCoroutineScope.launch</a>之前执行 函数内部所有的异常都不会被抛出, 也不会终止作用域执行</div></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <h2 class="">Properties</h2>
- <div class="table" data-togglable="Properties"><a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="animate" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">animate</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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%2FStateCoroutineScope%2Fanimate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="animate" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%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%2FStateCoroutineScope%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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="coroutineContext" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FStateCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">coroutineContext</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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%2FStateCoroutineScope%2FcoroutineContext%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="coroutineContext" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%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%2FStateCoroutineScope%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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="dispatcher" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">dispatcher</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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%2FStateCoroutineScope%2Fdispatcher%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="dispatcher" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%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%2FStateCoroutineScope%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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="scopeGroup" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <div class=""><span class="inline-flex"><a href="index.html#%5Bcom.drake.net.scope%2FStateCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167">scopeGroup</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FStateCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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%2FStateCoroutineScope%2FscopeGroup%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="scopeGroup" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%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%2FStateCoroutineScope%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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fstate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="state" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fstate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <div class=""><span class="inline-flex"><a href="state.html">state</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fstate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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%2FStateCoroutineScope%2Fstate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" anchor-label="state" id="%5Bcom.drake.net.scope%2FStateCoroutineScope%2Fstate%2F%23%2FPointingToDeclaration%2F%5D%2FProperties%2F320833167" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">val <a href="state.html">state</a>: <span data-unresolved-link="com.drake.statelayout/StateLayout///PointingToDeclaration/">StateLayout</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>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <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>
- </div>
- </div>
- </body>
- </html>
|