mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
return stream subscription
This commit is contained in:
parent
442bf57e44
commit
a48031df7c
@ -30,8 +30,8 @@ class RustStreamReceiver {
|
|||||||
return shared;
|
return shared;
|
||||||
}
|
}
|
||||||
|
|
||||||
static listen(void Function(SubscribeObject subject) callback) {
|
static StreamSubscription<SubscribeObject> listen(void Function(SubscribeObject subject) callback) {
|
||||||
RustStreamReceiver.shared.observable.stream.listen(callback);
|
return RustStreamReceiver.shared.observable.stream.listen(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
void streamCallback(Uint8List bytes) {
|
void streamCallback(Uint8List bytes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user