Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
briar
briar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 695
    • Issues 695
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • briar
  • briarbriar
  • Merge Requests
  • !1266

Merged
Opened Aug 07, 2020 by akwizgran@akwizgranOwner

Use TaskScheduler for scheduling tasks

  • Overview 16
  • Commits 6
  • Pipelines 2
  • Changes 54

This branch adds a TaskScheduler interface, which replaces most uses of ScheduledExecutorService for scheduling tasks. The default implementation delegates to a ScheduledExecutorService. The Android implementation uses a combination of a periodic ticker that runs every 10 seconds when the device is awake, and an alarm that fires approximately every 15 minutes whether awake, asleep or dozing.

Later MRs will add wake locks to ensure that tasks aren't interrupted by sleep or doze.

First part of #1142 (closed)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
Reference: briar/briar!1266
Source branch: 1142-scheduler-interface

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.