dorm_sync 2.0.0-dev.5
dorm_sync: ^2.0.0-dev.5 copied to clipboard
Primary-to-replica synchronization for dORM applications with fallback reads, ordered delivery, and retryable outbox storage.
example/dorm_sync_example.dart
import 'package:dorm_sync/dorm_sync.dart';
Future<void> main() async {
final SyncOutbox outbox = MemorySyncOutbox();
// Configure an EngineSyncTarget and EngineReplicaTarget in the application,
// then pass them to SynchronizedEngine with this outbox.
print(isDormAvailabilityFailure(StateError('example'), StackTrace.current));
await outbox.close();
}