Skip to content

Commit

Permalink
change listen method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Beegan committed Apr 12, 2024
1 parent 0434cf7 commit b232949
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@

## 1.0.2

- Export fixes
- Export fixes

## 1.0.3

- change listen method signature -- now returns the subscription
4 changes: 2 additions & 2 deletions lib/src/reverse_beacon_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class ReverseBeacon {
});
}

void listen(Function(Spot spot) onListen) {
_controller.stream.listen(onListen);
StreamSubscription<Spot> listen(Function(Spot spot) onListen) {
return _controller.stream.listen(onListen);
}

void close() async {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: reverse_beacon
description: transforms the reverse beacon telnet CW and DIGI servers into a controllable stream
version: 1.0.2
version: 1.0.3
repository: https://github.com/N1BRI/reverse_beacon

environment:
Expand Down

0 comments on commit b232949

Please sign in to comment.