Fosi Fossil Service
Small teams. Open source. Built on Fossil.

IaC / SwiftFlow

High-performance WMS with wave picking, smart routing, and real-time inventory visibility.

Public | Owner: IaC | Default branch: trunk | Last update: 2026-10-23 14:37

Artifact ad98a3559309dd14b6d0ba1b5ea83deaf1c57b625fe56f81e6e189500a0169d3:


/// 两次发往来肯的最小间隔。last 为 0 表示还没发过请求。
pub fn wait_ms(now: Int, last: Int, gap: Int) -> Int {
  case last <= 0 || gap <= 0 {
    True -> 0
    False -> {
      let elapsed = now - last
      case elapsed >= gap {
        True -> 0
        False -> gap - elapsed
      }
    }
  }
}

Clone

You can clone this repository with the following command:

fossil clone https://fosi.dev/IaC/SwiftFlow

Contribute

The best way to contribute is through e-mail. See the project documentation for more details.