Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/Threema/Utilities/BGTasks/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 920 B image not shown  

Quelle  ThreemaBackgroundTask.swift   Sprache: JAVA

 

import BackgroundTasks
import Foundation

/// Tasks that can be scheduled with `ThreemaBGTaskManager`
///
/// See `MessagesRetentionBackgroundTask` for a reference implementation.
///
/// Add newly created tasks to the `tasks` property in `ThreemaBGTaskManager`
protocol ThreemaBackgroundTask: Sendable {
    /// Identifier of task
    ///
    /// It should start with `ch.threema.bgtask.` and needs to be added to the `Info.plist` files.
    var identifier: String { get }
    
    /// Minimal interval between scheduling and execution
    var minimalInterval: TimeInterval { get }
    
    /// Should this task actually be scheduled (if it was scheduled before it will be canceled)
    var shouldSchedule: Bool { get }
    
    /// If the task is executed should it be schedules again (with the same `minimalInterval`)
    var shouldReschedule: Bool { get }
    
    /// Execute the task
    func run() async throws
}

Messung
CHZG
1009910099

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.