mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 14:47:13 -04:00
return stream subscription
This commit is contained in:
parent
442bf57e44
commit
a48031df7c
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ class RustStreamReceiver {
|
|||
return shared;
|
||||
}
|
||||
|
||||
static listen(void Function(SubscribeObject subject) callback) {
|
||||
RustStreamReceiver.shared.observable.stream.listen(callback);
|
||||
static StreamSubscription<SubscribeObject> listen(void Function(SubscribeObject subject) callback) {
|
||||
return RustStreamReceiver.shared.observable.stream.listen(callback);
|
||||
}
|
||||
|
||||
void streamCallback(Uint8List bytes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue