mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-23 06:53:08 +00:00
12 lines
313 B
Nim
12 lines
313 B
Nim
import ../statemachine
|
|
import ../../asyncyeah
|
|
|
|
type PurchaseFinished* = ref object of PurchaseState
|
|
|
|
method `$`*(state: PurchaseFinished): string =
|
|
"finished"
|
|
|
|
method run*(state: PurchaseFinished, machine: Machine): Future[?State] {.asyncyeah.} =
|
|
let purchase = Purchase(machine)
|
|
purchase.future.complete()
|