2025-02-10 15:34:41 +01:00

13 lines
362 B
Nim

import pkg/chronos
import pkg/questionable/results
import ./state
type Component* = ref object of RootObj
method start*(c: Component, state: State): 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")