Skip to content

Commit

Permalink
Merge pull request #37 from kumulynja/fix-event-handling-comments
Browse files Browse the repository at this point in the history
fix mix-up in comments of nextEvent and eventHandled
  • Loading branch information
BitcoinZavior authored Jun 8, 2024
2 parents a0b2a85 + 3479aec commit 77f34f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/root.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class Node extends LdkNode {
}
}

/// 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.
@override
Future<void> eventHandled({hint}) async {
try {
Expand All @@ -67,9 +67,9 @@ class Node extends LdkNode {
}
}

// 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()`.
@override
Future<types.Event?> nextEvent({hint}) async {
try {
Expand Down

0 comments on commit 77f34f6

Please sign in to comment.