poohbar
09/13/2018, 12:42 PMUnfortunately, this example is wrong on many levels in very subtle ways.Seriously? So all these talks were full of completely wrong examples? And you just found out? It's not like these concepts are completely new to computer science, why not take more inspiration from other languages such as
clojure.async
?elizarov
09/13/2018, 12:49 PMelizarov
09/13/2018, 12:50 PMelizarov
09/13/2018, 12:50 PMelizarov
09/13/2018, 12:51 PMelizarov
09/13/2018, 12:51 PMelizarov
09/13/2018, 12:51 PMelizarov
09/13/2018, 12:56 PMkevinherron
09/13/2018, 12:57 PMkevinherron
09/13/2018, 12:57 PMpoohbar
09/13/2018, 12:57 PMkevinherron
09/13/2018, 12:58 PMkevinherron
09/13/2018, 12:59 PMpoohbar
09/13/2018, 12:59 PMenleur
09/13/2018, 1:00 PMenleur
09/13/2018, 1:01 PMkevinherron
09/13/2018, 1:02 PMkevinherron
09/13/2018, 1:03 PMpoohbar
09/13/2018, 1:03 PMkevinherron
09/13/2018, 1:03 PMrobin
09/13/2018, 1:03 PMpoohbar
09/13/2018, 1:04 PMkevinherron
09/13/2018, 1:04 PMpoohbar
09/13/2018, 1:04 PMkevinherron
09/13/2018, 1:04 PMpoohbar
09/13/2018, 1:04 PMlaunch
to unleash
kevinherron
09/13/2018, 1:04 PMpoohbar
09/13/2018, 1:05 PMpoohbar
09/13/2018, 1:06 PMkevinherron
09/13/2018, 1:06 PMkevinherron
09/13/2018, 1:07 PMrobin
09/13/2018, 1:07 PMkevinherron
09/13/2018, 1:09 PMpoohbar
09/13/2018, 1:17 PMdekans
09/13/2018, 1:33 PMAll these months coroutines were out we were being convinced that the "experimental" flag is just an unfortunate naming.The experimental was precisely to warn that API could change. It regularly did (cf the recent
IO
dispatcher) so we were not convinced that this API was stable.
So yes, we have a lot of refactoring if you're enthusiastic like me with coroutines. But JB warned us.elizarov
09/13/2018, 1:39 PMelizarov
09/13/2018, 1:40 PMJeremy Rempel
09/13/2018, 1:52 PMJeremy Rempel
09/13/2018, 1:52 PMDaniel Tam
09/13/2018, 1:56 PMJonathan
09/13/2018, 2:43 PMDico
09/13/2018, 2:48 PMexperimental
part of the package was dropped with Kotlin 1.3-M1 - but this in itself is an experimental release. Nothing about coroutines is finalized until Kotlin 1.3 - and this is something you agree to when you use the technology. On the other hand, JB are leaving a lot of deprecated functions in the library and I wonder if they plan to remove them at all or not.Dico
09/13/2018, 2:49 PMelizarov
09/13/2018, 2:50 PMkotlinx.coroutines
is going to drop all deprecated functions.Dico
09/13/2018, 2:51 PMlaunch
and the other builder functions specifically have been deprecated in favor of GlobalScope.launch
and the other bunch. I think this is really explicit. What do you think of keeping them as aliases?kevinherron
09/13/2018, 2:54 PMelizarov
09/13/2018, 2:54 PMGlobalScope.launch
a lot in a typical app. Before making 0.26.0
release we’ve migrated a few apps (both OSS and internal) and they were all gonekevinherron
09/13/2018, 2:54 PMRuckus
09/13/2018, 3:52 PMlaunch
to unleash
is a great idea 🙂kevinherron
09/13/2018, 4:02 PMkraken
?Dico
09/13/2018, 4:19 PMkevinherron
09/13/2018, 4:27 PMkevinherron
09/13/2018, 4:27 PMDico
09/13/2018, 4:42 PMDico
09/13/2018, 4:45 PMjovmit
09/13/2018, 7:15 PMpakoito
09/13/2018, 9:50 PMHow would I go about running 2 transactions in a coroutine scope? If one fails, I don’t want the other to be cancelled Midway through.I disagree for Deferred and suspended functions that return a value. If you’re not going to receive a value, you will be retaining resources and using hardware for an operation that’s not going to complete. This was a net win when it became the default in Scala concurrency libs. I’m happy with whatever for Job and suspend + Unit, side-effects are wrong anyway 😛