return stream subscription

This commit is contained in:
appflowy 2022-01-30 10:33:05 +08:00
parent 442bf57e44
commit a48031df7c

View File

@ -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) {