Skip to content

Commit

Permalink
CBL-5710: Add note that the replicator cannot be started in the inBat…
Browse files Browse the repository at this point in the history
…ch() function (#3286)
  • Loading branch information
velicuvlad authored May 15, 2024
1 parent 986803e commit ec83376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Objective-C/CBLReplicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ NS_ASSUME_NONNULL_BEGIN
/**
Starts the replicator. This method returns immediately; the replicator runs asynchronously
and will report its progress through the replicator change notification.
@note This method MUST NOT be called within database's inBatch() block, as it will enter deadlock.
*/
- (void) start;

Expand Down
1 change: 1 addition & 0 deletions Swift/Replicator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public final class Replicator {

/// Starts the replicator. This method returns immediately; the replicator runs asynchronously
/// and will report its progress through the replicator change notification.
/// - Note: This method MUST NOT be called within database's inBatch() block, as it will enter deadlock.
public func start() {
registerActiveReplicator()
impl.start()
Expand Down

0 comments on commit ec83376

Please sign in to comment.