mirror of
https://github.com/logos-storage/logos-storage-network-crawler.git
synced 2026-02-09 08:03:21 +00:00
16 lines
348 B
Nim
16 lines
348 B
Nim
import pkg/chronos
|
|
import pkg/questionable/results
|
|
|
|
import ./config
|
|
|
|
type
|
|
OnStep = proc(): Future[?!void] {.async: (raises: []), gcsafe.}
|
|
State* = ref object
|
|
config*: Config
|
|
# events
|
|
# appstate
|
|
|
|
proc whileRunning*(this: State, step: OnStep, delay: Duration) =
|
|
discard
|
|
#todo: while status == running, step(), asyncsleep duration
|