Export to GitHub

scalafx - issue #126

Platform.runLater should accept closures with any return types


Posted on Mar 25, 2014 by Happy Camel

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) ...

Comment #1

Posted on Mar 25, 2014 by Happy Camel

This issue was closed by revision 2e73c93f7dd8.

Status: Fixed

Labels:
Type-Enhancement Priority-Medium