We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd58bbf commit 05b8645Copy full SHA for 05b8645
packages/powersync_core/lib/src/database/powersync_db_mixin.dart
@@ -351,6 +351,10 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
351
SyncStatus(connected: false, lastSyncedAt: currentStatus.lastSyncedAt));
352
}
353
354
+ Future<void> abortCurrentConnection() async {
355
+ await _abortCurrentSync();
356
+ }
357
+
358
Future<void> _abortCurrentSync() async {
359
if (_abortActiveSync case final disconnector?) {
360
/// Checking `disconnecter.aborted` prevents race conditions
0 commit comments