Михаил Капелько hace 10 meses
padre
commit
5cd4ad6d74
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. +4
    -4
      Modules/MicX/MicItem/src/MicItem.Shoulds.swift

+ 4
- 4
Modules/MicX/MicItem/src/MicItem.Shoulds.swift Ver fichero

@@ -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


Cargando…
Cancelar
Guardar