From 2bfd4bc95fe54b708834a3d1effe431f960fcd9f Mon Sep 17 00:00:00 2001 From: kumulynja Date: Tue, 27 Feb 2024 10:38:17 +0100 Subject: [PATCH] fix mixup in comments of nextEvent and eventHandled --- lib/src/root.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/root.dart b/lib/src/root.dart index 129d659..c1cbce4 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -46,9 +46,9 @@ class Node { } } - /// Blocks until the next event is available. + // Confirm the last retrieved event handled. /// - /// **Note:** this will always return the same event until handling is confirmed via `node.eventHandled()`. + /// **Note:** This **MUST** be called after each event has been handled. Future eventHandled() async { try { await loaderApi.eventHandledMethodNodePointer(that: _pointer); @@ -57,9 +57,9 @@ class Node { } } - // Confirm the last retrieved event handled. + /// Blocks until the next event is available. /// - /// **Note:** This **MUST** be called after each event has been handled. + /// **Note:** this will always return the same event until handling is confirmed via `node.eventHandled()`. Future nextEvent() async { try { return await loaderApi.nextEventMethodNodePointer(that: _pointer);