peichhorn / lombok-pg

Collection of lombok extensions
http://peichhorn.github.com/lombok-pg/
Other
326 stars 44 forks source link

Add c# style async/await functionality #149

Open jmaine opened 9 years ago

jmaine commented 9 years ago

It would be nice for lombok-pg to add c# like async/await functionality: https://msdn.microsoft.com/en-us/library/hh191443.aspx

It would require to turn the method into a state machine like a generator. https://github.com/peichhorn/lombok-pg/wiki/Yield

lbrasseur commented 5 years ago

This would be great. There is one implementation from EA:

https://github.com/electronicarts/ea-async

And other one:

https://github.com/vsilaev/tascalate-async-await

(BTW, I tried to run EA implementation in Android and I couldn't make it work, maybe an annotation processor based implementation would make this easier)