13 lines
348 B
Nim
Raw Normal View History

2025-02-10 14:49:30 +01:00
import pkg/chronos
import pkg/questionable/results
import ./state
2025-02-10 15:34:41 +01:00
type Component* = ref object of RootObj
2025-02-10 14:49:30 +01:00
2025-02-10 16:24:54 +01:00
method start*(c: Component): Future[?!void] {.async, base.} =
2025-02-10 15:34:41 +01:00
raiseAssert("call to abstract method: component.start")
2025-02-10 14:49:30 +01:00
method stop*(c: Component): Future[?!void] {.async, base.} =
2025-02-10 15:34:41 +01:00
raiseAssert("call to abstract method: component.stop")