Михаил Капелько 10 mesi fa
parent
commit
5cd4ad6d74
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      Modules/MicX/MicItem/src/MicItem.Shoulds.swift

+ 4
- 4
Modules/MicX/MicItem/src/MicItem.Shoulds.swift Vedi File

@@ -11,14 +11,14 @@ public extension MicItem {
return nil
}

static func shouldResetTimeout(_ c: MicItemContext) -> (delay: Int, value: Bool)? {
static func shouldResetTimeout(_ c: MicItemContext) -> TimeInterval? {
if
c.activityDate.isRecent,
let end = c.activityDate.value
{
let now = Date()
let timeout = now < end
return (timeout, true)
let timeout = end.timerIntervalSinceNow()
/**/print("ИГР MicIS.shouldRT timeout: '\(timeout)'")
return nil
}

return nil


Loading…
Annulla
Salva