Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1399

Update sync::network::Service to (optionally) continue running if there are no work items

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Sync
    • None

      The event loop provided by sync::network::Service.run() will exit if there are no more pending items to be run. This resulted in having to create a long running timer called keep_running_timer in the Sync Client that was always active so there was something to do for the event loop to prevent it from exiting prematurely.

      Update Service so it can be constructed with an optional bool value that removes the requirement for something to keep the event loop "primed" so it doesn't exit if there is nothing to do. Once this is implemented, the keep_running_timer can be removed.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            michael.wilkersonbarker@mongodb.com Michael Wilkerson-Barker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: