/* Ċ Ġ* ĠCopyright Ġ 2 0 1 0 - 2 0 1 8 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ċ Ġ* Ġthat Ġcan Ġbe Ġfound Ġin Ġthe Ġlicense / LICENSE . txt Ġfile . Ċ Ġ*/ Ċ Ċ @ file : Suppress (" IN VISIBLE _ REFERENCE ", Ġ" IN VISIBLE _ MEMBER ") Ċ Ċ package Ġkotlin . coroutines . experimental . intr insics Ċ Ċ import Ġkotlin . coroutines . experimental . Continuation Ċ Ċ @ Since Kotlin (" 1 . 1 ") Ċ @ Suppress (" UN CHECK ED _ CAST ") Ċ @ kotlin . internal . Inline Only Ċ public Ġactual Ġinline Ġfun Ġ< T > Ġ( suspend Ġ() Ġ-> ĠT ). start Coroutine Un intercept ed Or Return ( ĊĠĠĠ Ġcompletion : ĠContinu ation < T > Ċ ): ĠAny ? Ġ= Ġthis . as Dynamic ()( completion , Ġfalse ) Ċ Ċ @ Since Kotlin (" 1 . 1 ") Ċ @ Suppress (" UN CHECK ED _ CAST ") Ċ @ kotlin . internal . Inline Only Ċ public Ġactual Ġinline Ġfun Ġ< R , ĠT > Ġ( suspend ĠR . () Ġ-> ĠT ). start Coroutine Un intercept ed Or Return ( ĊĠĠĠ Ġreceiver : ĠR , ĊĠĠĠ Ġcompletion : ĠContinu ation < T > Ċ ): ĠAny ? Ġ= Ġthis . as Dynamic ()( receiver , Ġcompletion , Ġfalse ) Ċ Ċ @ Since Kotlin (" 1 . 1 ") Ċ public Ġactual Ġfun Ġ< R , ĠT > Ġ( suspend ĠR . () Ġ-> ĠT ). create Coroutine Unchecked ( ĊĠĠĠ Ġreceiver : ĠR , ĊĠĠĠ Ġcompletion : ĠContinu ation < T > Ċ ): ĠContinu ation < Unit > Ġ= Ġthis . as Dynamic ()( receiver , Ġcompletion , Ġtrue ). facade Ċ Ċ @ Since Kotlin (" 1 . 1 ") Ċ public Ġactual Ġfun Ġ< T > Ġ( suspend Ġ() Ġ-> ĠT ). create Coroutine Unchecked ( ĊĠĠĠ Ġcompletion : ĠContinu ation < T > Ċ ): ĠContinu ation < Unit > Ġ= Ġthis . as Dynamic ()( completion , Ġtrue ). facade ĊĊ Ċ /** Ċ Ġ* ĠThis Ġvalue Ġis Ġused Ġas Ġa Ġreturn Ġvalue Ġof Ġ[ suspend Coroutine Or Return ] Ġ` block ` Ġargument Ġto Ġstate Ġthat Ċ Ġ* Ġthe Ġexecution Ġwas Ġsus pended Ġand Ġwill Ġnot Ġreturn Ġany Ġresult Ġimmediately . Ċ Ġ*/ Ċ @ Since Kotlin (" 1 . 1 ") Ċ public Ġactual Ġval ĠCOR OUT INE _ SUS PEN DED : ĠAny Ġ= ĠCor outine Sus pended Marker Ċ Ċ private Ġobject ĠCor outine Sus pended Marker