-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flexible sync subscribe/unsubscribe API #1354
Conversation
Pull Request Test Coverage Report for Build 6867176225
💛 - Coveralls |
@@ -34,7 +34,7 @@ import 'session.dart'; | |||
import 'subscription.dart'; | |||
import 'set.dart'; | |||
|
|||
export 'package:cancellation_token/cancellation_token.dart' show CancellationToken, CancelledException; | |||
export 'package:cancellation_token/cancellation_token.dart' show CancellationToken, TimeoutCancellationToken, CancelledException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still now fan of exporting classes from other packages.. but I know you didn't start this 😄
@@ -272,21 +273,22 @@ class MutableSubscriptionSet extends SubscriptionSet { | |||
return Subscription._(realmCore.insertOrAssignSubscription(this, query, name, update)); | |||
} | |||
|
|||
/// Remove the [subscription] from the set, if it exists. | |||
/// Removes the [subscription] from the set, if it exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change the tense? If we do, there are doc comments on other methods like clear
that should change as well..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the descriptions in this file are like this, Removes, Gets, Adds ... I will change the rest of the methods in the file.
* main: Don't add the ISRG X1 Root on Android (#1434) Wait for initial sync to complete before starting the tests (#1435) kn/update analyzer (#1365) Add vNext Changelog header (#1429) [Release 1.6.0] (#1428) Upgrade to Core 13.23.4 (#1427) Flexible sync subscribe/unsubscribe API (#1354) Use default context rather than creating a new one (#1426) Handle duplicate certificates (#1425) kn/add certificate (#1378) asymmetric object allow non embedded links (#1402) Rudimentary geospatial support (#1389) Core 13.20.1 sync errors changes (#1387) Fix RealmObject.hashCode (#1420) add 'ignore_for_file: type=lint' to *.g.dart files (#1413) kn/fix skip then iterate bug (#1410)
Implements
RealmResults.subscribe()
andRealmResults.unsubscribe()
andMutableSubscriptionSet.clear({bool unnamedOnly = false})
.Adds cancellationToken parameter to
Session.waitForDownload()
,Session.waitForUpload()
andSubscriptionSet.waitForSynchronization()
Fixes #1353
Related to realm/realm-kotlin#1356, realm/realm-js#5772, realm/realm-swift#7755, realm/realm-swift#8244