2025-02-10 16:24:54 +01:00

13 lines
348 B
Nim

import pkg/chronos
import pkg/questionable/results
import ./state
type Component* = ref object of RootObj
method start*(c: Component): Future[?!void] {.async, base.} =
raiseAssert("call to abstract method: component.start")
method stop*(c: Component): Future[?!void] {.async, base.} =
raiseAssert("call to abstract method: component.stop")