ericssmith / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

Platform.runLater should accept closures with any return types #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently `Platform.runLater` requires closure with `Unit` return type:

    def runLater(op: => Unit) ...

This leads to sometimes unnatural code, with last statement there only to 
return `Unit`. 

Closure with any return type should be acceptable:

    def runLater[R](op: => R) ...

Original issue reported on code.google.com by jpsacha on 25 Mar 2014 at 1:25

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 2e73c93f7dd8.

Original comment by jpsacha on 25 Mar 2014 at 3:08