louiscad
03/09/2018, 8:22 AMlaunch
and any other function whose lambda is a suspend
one)? This could be a play sign with the curve, similar to the arrow with the curve we have for suspension points. This would help knowing where suspend calls are allowed in current code, helping to see potentially unneeded coroutines launchesorangy
launch
body… Or may be less prominent in-editor markers…louiscad
03/09/2018, 9:05 AMlaunch
, async
, runBlocking
plus custom coroutines launch utilities (e.g. launchInUi
that checks Android UI thread, and starts undispatched). I mean it could flag unused suspension ability in launch
or a custom coroutine launcher function, but would also flag a suspend listener lambda from a third party lib.
Also, one may launch a coroutine just to make the code run in a certain dispatcher.
On the other hand, a gutter icon (that may have its design tweaked if too invasive, alpha FTW) would only be informative, similar to lambda receiver type hints, but less invasive (personally dislike their verbosity, I just find them good for learning)elizarov
03/09/2018, 9:30 AMdave08
03/09/2018, 10:40 AMelizarov
03/09/2018, 10:43 AMdave08
03/09/2018, 10:44 AM