spierce7
11/25/2019, 4:26 PMsuspend
, and also manually must ensure transfer to that thread - via a withContext
method.
I’d like to create a compiler plugin to do this for us by doing one of the following:
1. Change the visibility of the class, and create a wrapping class that ensure the transfer to the thread, and then defers to the delegated object / class
2. Alter the public function signature to something asynchronous, and wrap the body of the method to transfer to the proper thread.
I’m new to compiler plugins. Can anyone point me in the right direction, or point me at any bumps in the road to accomplish this? Will I have to create a separate ide plugin to get syntax completion to work?raulraja
11/25/2019, 6:38 PMraulraja
11/25/2019, 6:39 PMspierce7
11/25/2019, 8:43 PMraulraja
11/25/2019, 8:44 PMnamedfunction
there is equivalent functions for all other elements of the kotlin treeraulraja
11/25/2019, 8:44 PMraulraja
11/25/2019, 8:45 PMspierce7
11/25/2019, 9:24 PMamanda.hinchman-dominguez
11/26/2019, 2:33 PMamanda.hinchman-dominguez
11/26/2019, 2:33 PM