cy
10/09/2018, 11:18 AM1.0.0-alpha-1
has been published
Kotlin 1.3.0-rc-131
(both JVM and Native)
kotlinx.coroutines 0.30.2-eap13
Migrated to coroutines structured concurrency (see `https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/basics.md#structured-concurrency`). Now all ktor handlers (including websocket) have relevant coroutiune scope.
Please note that it is important to use with 1.3.0-rc-131
and not mix with incompatible coroutines versions.dave08
10/09/2018, 11:27 AMcy
10/09/2018, 12:53 PMcy
10/09/2018, 12:54 PMlukaswelte
10/09/2018, 12:55 PMcy
10/09/2018, 12:56 PMcy
10/09/2018, 12:56 PMlukaswelte
10/09/2018, 12:57 PMcy
10/09/2018, 12:59 PMdave08
10/09/2018, 1:01 PMlaunch
from it)? Like on the ApplicationCall object or something?cy
10/09/2018, 1:02 PMPipelineContext
is a CoroutinScope so you can launch coroutines everywere in handlers and interceptorscy
10/09/2018, 1:05 PMdave08
10/09/2018, 1:08 PMSupervisorScope
for the Application... although if the application stops, then the process also goes along with it's coroutines, unless someone is running more than one application (like me, since I have to open two ports, one for internal requests and the other for external ones...) or has some application failure recovery logic.cy
10/09/2018, 1:11 PMembeddedServer
could be called on a scope for that purposedave08
10/09/2018, 1:16 PMcy
10/09/2018, 1:18 PMdave08
10/09/2018, 1:20 PMcy
10/09/2018, 1:21 PMcy
10/09/2018, 1:22 PMcy
10/09/2018, 1:22 PMcy
10/09/2018, 1:23 PMstop()
for thisdave08
10/09/2018, 1:23 PMNonCancellableContext
dave08
10/09/2018, 1:23 PMdave08
10/09/2018, 1:24 PMdave08
10/09/2018, 1:25 PMstop()
dave08
10/09/2018, 1:25 PMcy
10/09/2018, 1:26 PMcy
10/09/2018, 1:27 PMapplication.launch {}
dave08
10/09/2018, 1:28 PMgildor
10/09/2018, 5:26 PM