Skip to content

Commit 05b8645

Browse files
committed
expose abortCurrentConnection
1 parent dd58bbf commit 05b8645

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/powersync_core/lib/src/database/powersync_db_mixin.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
351351
SyncStatus(connected: false, lastSyncedAt: currentStatus.lastSyncedAt));
352352
}
353353

354+
Future<void> abortCurrentConnection() async {
355+
await _abortCurrentSync();
356+
}
357+
354358
Future<void> _abortCurrentSync() async {
355359
if (_abortActiveSync case final disconnector?) {
356360
/// Checking `disconnecter.aborted` prevents race conditions

0 commit comments

Comments
 (0)