Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1129 from HoldYourWaffle/patch-1
Browse files Browse the repository at this point in the history
Remove non-nullable bound from runAsyncWithProgress
  • Loading branch information
Edvin Syse authored Dec 8, 2019
2 parents f6aa442 + f66f344 commit c1c96b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tornadofx/Async.kt
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ fun Node.runAsyncWithProgress(latch: CountDownLatch, timeout: Duration? = null,
* The default progress node is a ProgressIndicator that fills the same
* client area as the parent. You can swap the progress node for any Node you like.
*/
fun <T : Any> Node.runAsyncWithProgress(progress: Node = ProgressIndicator(), op: () -> T): Task<T> {
fun <T> Node.runAsyncWithProgress(progress: Node = ProgressIndicator(), op: () -> T): Task<T> {
if (this is Labeled) {
val oldGraphic = graphic
(progress as? Region)?.setPrefSize(16.0, 16.0)
Expand Down

0 comments on commit c1c96b2

Please sign in to comment.