Skip to content

Commit

Permalink
Update documentation on AnimationTimer methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisker committed Jan 27, 2024
1 parent af250cf commit 6271649
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public AnimationTimer() {
* The {@code AnimationTimer} can be stopped by calling {@link #stop()}.
* <p>
* Note: if this method is not called on the JavaFX Application Thread, it is delegated to it automatically.
* In this case, the call is asynchronous and may not happen immediately.
*/
public void start() {
Utils.runOnFxThread(this::startOnFxThread);
Expand All @@ -122,6 +123,7 @@ private void startOnFxThread() {
* {@link #start()}.
* <p>
* Note: if this method is not called on the JavaFX Application Thread, it is delegated to it automatically.
* In this case, the call is asynchronous and may not happen immediately.
*/
public void stop() {
Utils.runOnFxThread(this::stopOnFxThread);
Expand Down

0 comments on commit 6271649

Please sign in to comment.